Skip to content

Commit

Permalink
Normalize being an annoying little compile test
Browse files Browse the repository at this point in the history
that keeps on erroring on less-common architectures.
  • Loading branch information
workingjubilee committed Sep 20, 2024
1 parent 2b99a34 commit 8431855
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/ui/limits/huge-struct.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// ignore-tidy-linelength
//@ build-fail
//@ normalize-stderr-test: "S32" -> "SXX"
//@ normalize-stderr-test: "S1M" -> "SXX"
//@ error-pattern: too big for the current
//@ normalize-stderr-32bit: "values of the type `[^`]+` are too big" -> "values of the type $$REALLY_TOO_BIG are too big"
//@ normalize-stderr-64bit: "values of the type `[^`]+` are too big" -> "values of the type $$REALLY_TOO_BIG are too big"

struct S32<T> {
v0: T,
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/limits/huge-struct.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: values of the type `SXX<SXX<S1k<SXX<SXX<u32>>>>>` are too big for the current architecture
--> $DIR/huge-struct.rs:46:9
error: values of the type $REALLY_TOO_BIG are too big for the current architecture
--> $DIR/huge-struct.rs:48:9
|
LL | let fat: Option<SXX<SXX<SXX<u32>>>> = None;
| ^^^
Expand Down

0 comments on commit 8431855

Please sign in to comment.