Skip to content

Commit

Permalink
Auto merge of #113348 - saethlin:metadata-module-not-compiled, r=Nils…
Browse files Browse the repository at this point in the history
…trieb

Remove some unnecessary(?) normalization

#59774 (comment)
  • Loading branch information
bors committed Jul 6, 2023
2 parents 0d50ab7 + 4e21e9e commit b112bc5
Show file tree
Hide file tree
Showing 21 changed files with 11 additions and 51 deletions.
3 changes: 0 additions & 3 deletions tests/ui/duplicate/dupe-symbols-7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
//
// error-pattern: entry symbol `main` declared multiple times

// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
#![allow(warnings)]

#[no_mangle]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/duplicate/dupe-symbols-7.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: entry symbol `main` declared multiple times
--> $DIR/dupe-symbols-7.rs:12:1
--> $DIR/dupe-symbols-7.rs:9:1
|
LL | fn main(){}
| ^^^^^^^^^
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/limits/huge-array-simple-32.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// ignore-64bit
// build-fail

// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
#![allow(arithmetic_overflow)]

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/limits/huge-array-simple-32.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: values of the type `[u8; 2147516416]` are too big for the current architecture
--> $DIR/huge-array-simple-32.rs:10:9
--> $DIR/huge-array-simple-32.rs:7:9
|
LL | let _fat: [u8; (1<<31)+(1<<15)] =
| ^^^^
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/limits/huge-array-simple-64.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// build-fail
// ignore-32bit

// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
#![allow(arithmetic_overflow)]

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/limits/huge-array-simple-64.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: values of the type `[u8; 2305843011361177600]` are too big for the current architecture
--> $DIR/huge-array-simple-64.rs:10:9
--> $DIR/huge-array-simple-64.rs:7:9
|
LL | let _fat: [u8; (1<<61)+(1<<31)] =
| ^^^^
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/limits/huge-array.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
// FIXME https://github.com/rust-lang/rust/issues/59774

// build-fail
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""

fn generic<T: Copy>(t: T) {
let s: [T; 1518600000] = [t; 1518600000];
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/limits/huge-array.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: values of the type `[[u8; 1518599999]; 1518600000]` are too big for the current architecture
--> $DIR/huge-array.rs:8:9
--> $DIR/huge-array.rs:4:9
|
LL | let s: [T; 1518600000] = [t; 1518600000];
| ^
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/limits/huge-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// normalize-stderr-test "std::option::Option<\[u32; \d+\]>" -> "TYPE"
// normalize-stderr-test "\[u32; \d+\]" -> "TYPE"

// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""

#[cfg(target_pointer_width = "32")]
type BIG = Option<[u32; (1<<29)-1]>;

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/limits/huge-enum.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: values of the type `Option<TYPE>` are too big for the current architecture
--> $DIR/huge-enum.rs:16:9
--> $DIR/huge-enum.rs:12:9
|
LL | let big: BIG = None;
| ^^^
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/limits/huge-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
// normalize-stderr-test "S1M" -> "SXX"
// error-pattern: too big for the current

// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""

struct S32<T> {
v0: T,
v1: T,
Expand Down
2 changes: 1 addition & 1 deletion 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<SXX<u32>>>` are too big for the current architecture
--> $DIR/huge-struct.rs:50:9
--> $DIR/huge-struct.rs:46:9
|
LL | let fat: Option<SXX<SXX<SXX<u32>>>> = None;
| ^^^
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/limits/issue-15919-32.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// ignore-64bit
// build-fail

// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""

fn main() {
let x = [0usize; 0xffff_ffff]; //~ ERROR too big
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/limits/issue-15919-32.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: values of the type `[usize; usize::MAX]` are too big for the current architecture
--> $DIR/issue-15919-32.rs:9:9
--> $DIR/issue-15919-32.rs:5:9
|
LL | let x = [0usize; 0xffff_ffff];
| ^
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/limits/issue-15919-64.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// build-fail
// ignore-32bit

// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""

fn main() {
let x = [0usize; 0xffff_ffff_ffff_ffff]; //~ ERROR too big
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/limits/issue-15919-64.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: values of the type `[usize; usize::MAX]` are too big for the current architecture
--> $DIR/issue-15919-64.rs:9:9
--> $DIR/issue-15919-64.rs:5:9
|
LL | let x = [0usize; 0xffff_ffff_ffff_ffff];
| ^
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/limits/issue-17913.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// normalize-stderr-test "\[&usize; \d+\]" -> "[&usize; usize::MAX]"
// error-pattern: too big for the current architecture

// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""

#[cfg(target_pointer_width = "64")]
fn main() {
let n = 0_usize;
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/limits/issue-56762.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// only-x86_64

// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
const HUGE_SIZE: usize = !0usize / 8;


Expand Down
4 changes: 2 additions & 2 deletions tests/ui/limits/issue-56762.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error[E0080]: values of the type `[u8; 2305843009213693951]` are too big for the current architecture
--> $DIR/issue-56762.rs:19:1
--> $DIR/issue-56762.rs:16:1
|
LL | static MY_TOO_BIG_ARRAY_1: TooBigArray = TooBigArray::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0080]: values of the type `[u8; 2305843009213693951]` are too big for the current architecture
--> $DIR/issue-56762.rs:21:1
--> $DIR/issue-56762.rs:18:1
|
LL | static MY_TOO_BIG_ARRAY_2: [u8; HUGE_SIZE] = [0x00; HUGE_SIZE];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/linkage-attr/linkage3.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
// FIXME https://github.com/rust-lang/rust/issues/59774

// check-fail
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""

#![feature(linkage)]

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/linkage-attr/linkage3.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: invalid linkage specified
--> $DIR/linkage3.rs:11:5
--> $DIR/linkage3.rs:7:5
|
LL | static foo: *const i32;
| ^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit b112bc5

Please sign in to comment.