Skip to content

Commit 3a39b43

Browse files
committed
normalize away spurious error
1 parent 6cd7c8b commit 3a39b43

9 files changed

+27
-3
lines changed

src/test/ui/duplicate/dupe-symbols-7.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
//
22
// error-pattern: entry symbol `main` defined multiple times
3+
4+
// FIXME https://github.com/rust-lang/rust/issues/59774
5+
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
6+
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
37
#![allow(warnings)]
48

59
#[no_mangle]

src/test/ui/duplicate/dupe-symbols-7.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: entry symbol `main` defined multiple times
2-
--> $DIR/dupe-symbols-7.rs:6:1
2+
--> $DIR/dupe-symbols-7.rs:10:1
33
|
44
LL | fn main(){}
55
| ^^^^^^^^^^^

src/test/ui/huge-array.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// error-pattern:; 1518600000
22

3+
// FIXME https://github.com/rust-lang/rust/issues/59774
4+
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
5+
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
6+
37
fn generic<T: Copy>(t: T) {
48
let s: [T; 1518600000] = [t; 1518600000];
59
}

src/test/ui/issues/issue-15919.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// error-pattern: too big for the current architecture
22
// normalize-stderr-test "\[usize; \d+\]" -> "[usize; N]"
33

4+
// FIXME https://github.com/rust-lang/rust/issues/59774
5+
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
6+
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
7+
48
#[cfg(target_pointer_width = "32")]
59
fn main() {
610
let x = [0usize; 0xffff_ffff];

src/test/ui/issues/issue-17913.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// normalize-stderr-test "\[&usize; \d+\]" -> "[&usize; N]"
22
// error-pattern: too big for the current architecture
33

4+
// FIXME https://github.com/rust-lang/rust/issues/59774
5+
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
6+
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
7+
48
#![feature(box_syntax)]
59

610
#[cfg(target_pointer_width = "64")]

src/test/ui/linkage2.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// FIXME https://github.com/rust-lang/rust/issues/59774
2+
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
3+
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
4+
15
#![feature(linkage)]
26

37
extern {

src/test/ui/linkage2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: must have type `*const T` or `*mut T`
2-
--> $DIR/linkage2.rs:4:32
2+
--> $DIR/linkage2.rs:8:32
33
|
44
LL | #[linkage = "extern_weak"] static foo: i32;
55
| ^^^^^^^^^^^^^^^^

src/test/ui/linkage3.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// FIXME https://github.com/rust-lang/rust/issues/59774
2+
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
3+
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
4+
15
#![feature(linkage)]
26

37
extern {

src/test/ui/linkage3.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: invalid linkage specified
2-
--> $DIR/linkage3.rs:4:24
2+
--> $DIR/linkage3.rs:8:24
33
|
44
LL | #[linkage = "foo"] static foo: *const i32;
55
| ^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)