Skip to content

Commit 0acc846

Browse files
committed
Normalize away the maybe remapped paths to the compiler and std
1 parent 74eecf9 commit 0acc846

21 files changed

+30
-16
lines changed

tests/ui/extern/extern-types-field-offset.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//@ check-run-results
33
//@ exec-env:RUST_BACKTRACE=0
44
//@ normalize-stderr: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL"
5+
//@ normalize-stderr: "/rustc(?:-dev)?/[a-z0-9.]+/" -> ""
56
//@ ignore-backends: gcc
67
#![feature(extern_types)]
78

tests/ui/hygiene/panic-location.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//@ check-run-results
33
//@ exec-env:RUST_BACKTRACE=0
44
//@ normalize-stderr: ".rs:\d+:\d+" -> ".rs:LL:CC"
5+
//@ normalize-stderr: "/rustc(?:-dev)?/[a-z0-9.]+/" -> ""
56
//
67
// Regression test for issue #70963
78
// The reported panic location should not be `<::core::macros::panic macros>`.

tests/ui/mir/lint/storage-live.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//@ normalize-stderr: "thread 'rustc'.*panicked.*\n" -> ""
55
//@ normalize-stderr: "storage_live\[....\]" -> "storage_live[HASH]"
66
//@ normalize-stderr: "(delayed at [^:]+):\d+:\d+ - " -> "$1:LL:CC - "
7+
//@ normalize-stderr: "/rustc(?:-dev)?/[a-z0-9.]+/" -> ""
78
//@ rustc-env:RUST_BACKTRACE=0
89

910
#![feature(custom_mir, core_intrinsics)]

tests/ui/mir/lint/storage-live.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ storage_live[HASH]::multiple_storage)) (after pass CheckForceInline) at bb0[1]:
22
StorageLive(_1) which already has storage here
3-
--> $DIR/storage-live.rs:21:13
3+
--> $DIR/storage-live.rs:22:13
44
|
55
LL | StorageLive(a);
66
| ^^^^^^^^^^^^^^
77
|
88
note: delayed at compiler/rustc_mir_transform/src/lint.rs:LL:CC - disabled backtrace
9-
--> $DIR/storage-live.rs:21:13
9+
--> $DIR/storage-live.rs:22:13
1010
|
1111
LL | StorageLive(a);
1212
| ^^^^^^^^^^^^^^

tests/ui/panics/panic-in-cleanup.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//@ normalize-stderr: "\n +[0-9]+:[^\n]+" -> ""
66
//@ normalize-stderr: "\n +at [^\n]+" -> ""
77
//@ normalize-stderr: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL"
8+
//@ normalize-stderr: "/rustc(?:-dev)?/[a-z0-9.]+/" -> ""
89
//@ needs-unwind
910
//@ ignore-emscripten "RuntimeError" junk in output
1011
//@ ignore-msvc SEH doesn't do panic-during-cleanup the same way as everyone else

tests/ui/panics/panic-in-cleanup.run.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
thread 'main' ($TID) panicked at $DIR/panic-in-cleanup.rs:22:5:
2+
thread 'main' ($TID) panicked at $DIR/panic-in-cleanup.rs:23:5:
33
explicit panic
44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
55

6-
thread 'main' ($TID) panicked at $DIR/panic-in-cleanup.rs:16:9:
6+
thread 'main' ($TID) panicked at $DIR/panic-in-cleanup.rs:17:9:
77
BOOM
88
stack backtrace:
99

tests/ui/panics/panic-in-ffi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//@ normalize-stderr: "\n +[0-9]+:[^\n]+" -> ""
77
//@ normalize-stderr: "\n +at [^\n]+" -> ""
88
//@ normalize-stderr: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL"
9+
//@ normalize-stderr: "/rustc(?:-dev)?/[a-z0-9.]+/" -> ""
910
//@ needs-unwind
1011
//@ ignore-emscripten "RuntimeError" junk in output
1112

tests/ui/panics/panic-in-ffi.run.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
thread 'main' ($TID) panicked at $DIR/panic-in-ffi.rs:21:5:
2+
thread 'main' ($TID) panicked at $DIR/panic-in-ffi.rs:22:5:
33
Test
44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
55
Noisy Drop

tests/ui/process/println-with-broken-pipe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//@ ignore-visionos no 'head'
1212
//@ ignore-backends: gcc
1313
//@ normalize-stderr: ".rs:\d+:\d+" -> ".rs:LL:CC"
14+
//@ normalize-stderr: "/rustc(?:-dev)?/[a-z0-9.]+/" -> ""
1415
//@ compile-flags: -Zon-broken-pipe=error
1516

1617
// Test what the error message looks like when `println!()` panics because of

tests/ui/resolve/multiple_definitions_attribute_merging.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//@ normalize-stderr: "note: .*\n\n" -> ""
88
//@ normalize-stderr: "thread 'rustc'.*panicked.*\n" -> ""
99
//@ normalize-stderr: "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
10+
//@ normalize-stderr: "/rustc(?:-dev)?/[a-z0-9.]+/" -> ""
1011
//@ rustc-env:RUST_BACKTRACE=0
1112

1213
#[repr(packed)]

0 commit comments

Comments
 (0)