normalize away spurious error
This commit is contained in:
parent
6cd7c8b04a
commit
3a39b431e8
9 changed files with 27 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
|||
//
|
||||
// error-pattern: entry symbol `main` defined 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` defined multiple times
|
||||
--> $DIR/dupe-symbols-7.rs:6:1
|
||||
--> $DIR/dupe-symbols-7.rs:10:1
|
||||
|
|
||||
LL | fn main(){}
|
||||
| ^^^^^^^^^^^
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
// error-pattern:; 1518600000
|
||||
|
||||
// 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 generic<T: Copy>(t: T) {
|
||||
let s: [T; 1518600000] = [t; 1518600000];
|
||||
}
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
// error-pattern: too big for the current architecture
|
||||
// normalize-stderr-test "\[usize; \d+\]" -> "[usize; N]"
|
||||
|
||||
// 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")]
|
||||
fn main() {
|
||||
let x = [0usize; 0xffff_ffff];
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
// normalize-stderr-test "\[&usize; \d+\]" -> "[&usize; N]"
|
||||
// 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" -> ""
|
||||
|
||||
#![feature(box_syntax)]
|
||||
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// 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" -> ""
|
||||
|
||||
#![feature(linkage)]
|
||||
|
||||
extern {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error: must have type `*const T` or `*mut T`
|
||||
--> $DIR/linkage2.rs:4:32
|
||||
--> $DIR/linkage2.rs:8:32
|
||||
|
|
||||
LL | #[linkage = "extern_weak"] static foo: i32;
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// 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" -> ""
|
||||
|
||||
#![feature(linkage)]
|
||||
|
||||
extern {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error: invalid linkage specified
|
||||
--> $DIR/linkage3.rs:4:24
|
||||
--> $DIR/linkage3.rs:8:24
|
||||
|
|
||||
LL | #[linkage = "foo"] static foo: *const i32;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue