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:
commit
b112bc5529
@ -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]
|
||||
|
@ -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(){}
|
||||
| ^^^^^^^^^
|
||||
|
@ -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() {
|
||||
|
@ -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)] =
|
||||
| ^^^^
|
||||
|
@ -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() {
|
||||
|
@ -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)] =
|
||||
| ^^^^
|
||||
|
@ -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];
|
||||
|
@ -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];
|
||||
| ^
|
||||
|
@ -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]>;
|
||||
|
||||
|
@ -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;
|
||||
| ^^^
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
| ^^^
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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];
|
||||
| ^
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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];
|
||||
| ^
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
||||
|
@ -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];
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -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)]
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: invalid linkage specified
|
||||
--> $DIR/linkage3.rs:11:5
|
||||
--> $DIR/linkage3.rs:7:5
|
||||
|
|
||||
LL | static foo: *const i32;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
Loading…
Reference in New Issue
Block a user