Auto merge of #113348 - saethlin:metadata-module-not-compiled, r=Nilstrieb

Remove some unnecessary(?) normalization

https://github.com/rust-lang/rust/issues/59774#issuecomment-1550966711
This commit is contained in:
bors 2023-07-06 05:33:54 +00:00
commit b112bc5529
21 changed files with 11 additions and 51 deletions

View File

@ -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]

View File

@ -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(){}
| ^^^^^^^^^

View File

@ -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() {

View File

@ -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)] =
| ^^^^

View File

@ -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() {

View File

@ -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)] =
| ^^^^

View File

@ -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];

View File

@ -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];
| ^

View File

@ -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]>;

View File

@ -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;
| ^^^

View File

@ -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,

View File

@ -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;
| ^^^

View File

@ -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
}

View File

@ -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];
| ^

View File

@ -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
}

View File

@ -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];
| ^

View File

@ -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;

View File

@ -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;

View File

@ -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];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -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)]

View File

@ -1,5 +1,5 @@
error: invalid linkage specified
--> $DIR/linkage3.rs:11:5
--> $DIR/linkage3.rs:7:5
|
LL | static foo: *const i32;
| ^^^^^^^^^^^^^^^^^^^^^^