Skip to content

Commit 52ed423

Browse files
committed
Fixed stderr normalization for error-codes/E0152-duplicate-lang-items.rs
1 parent 0866ccf commit 52ed423

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/ui/error-codes/E0152-duplicate-lang-items.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//! Issue: <https://github.com/rust-lang/rust/issues/31788>
66
77
//@ error-pattern: first defined in crate `std`
8+
//@ normalize-stderr: "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
89
#![feature(lang_items)]
910

1011
extern crate core;

tests/ui/error-codes/E0152-duplicate-lang-items.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0152]: found duplicate lang item `panic_impl`
2-
--> $DIR/E0152-duplicate-lang-items.rs:14:1
2+
--> $DIR/E0152-duplicate-lang-items.rs:16:1
33
|
44
LL | / fn panic_impl(info: &PanicInfo) -> ! {
55
LL | |
@@ -8,7 +8,7 @@ LL | | }
88
| |_^
99
|
1010
= note: the lang item is first defined in crate `std` (which `E0152_duplicate_lang_items` depends on)
11-
= note: first definition in `std` loaded from $BUILD_DIR/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-df4a2d41d5905242.rlib
11+
= note: first definition in `std` loaded from SYSROOT/libstd-*.rlib
1212
= note: second definition in the local crate (`E0152_duplicate_lang_items`)
1313

1414
error: aborting due to 1 previous error

0 commit comments

Comments
 (0)