Skip to content

Commit 8431855

Browse files
Normalize being an annoying little compile test
that keeps on erroring on less-common architectures.
1 parent 2b99a34 commit 8431855

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/ui/limits/huge-struct.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
// ignore-tidy-linelength
12
//@ build-fail
23
//@ normalize-stderr-test: "S32" -> "SXX"
34
//@ normalize-stderr-test: "S1M" -> "SXX"
4-
//@ error-pattern: too big for the current
5+
//@ normalize-stderr-32bit: "values of the type `[^`]+` are too big" -> "values of the type $$REALLY_TOO_BIG are too big"
6+
//@ normalize-stderr-64bit: "values of the type `[^`]+` are too big" -> "values of the type $$REALLY_TOO_BIG are too big"
57

68
struct S32<T> {
79
v0: T,

tests/ui/limits/huge-struct.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
error: values of the type `SXX<SXX<S1k<SXX<SXX<u32>>>>>` are too big for the current architecture
2-
--> $DIR/huge-struct.rs:46:9
1+
error: values of the type $REALLY_TOO_BIG are too big for the current architecture
2+
--> $DIR/huge-struct.rs:48:9
33
|
44
LL | let fat: Option<SXX<SXX<SXX<u32>>>> = None;
55
| ^^^

0 commit comments

Comments
 (0)