Skip to content

Commit 8eeabd5

Browse files
committed
fixup! Print thread ID in panic message if thread name is unknown
1 parent 3bab080 commit 8eeabd5

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

tests/run-make/libtest-json/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn run_tests(extra_args: &[&str], expected_file: &str) {
3939
.actual_text("stdout", test_stdout)
4040
.normalize(r#"(?<prefix>"exec_time": )[0-9.]+"#, r#"${prefix}"$$EXEC_TIME""#)
4141
.normalize(
42-
r"thread '(?P<name>.*?)' \(0x[[:xdigit:]]+\) panicked",
42+
r"thread '(?P<name>.*?)' \(\d+\) panicked",
4343
"thread '$name' ($$TID) panicked",
4444
)
4545
.run();

tests/run-make/libtest-junit/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn run_tests(extra_args: &[&str], expected_file: &str) {
2828
.actual_text("stdout", test_stdout)
2929
.normalize(r#"\btime="[0-9.]+""#, r#"time="$$TIME""#)
3030
.normalize(
31-
r"thread '(?P<name>.*?)' \(0x[[:xdigit:]]+\) panicked",
31+
r"thread '(?P<name>.*?)' \(\d+\) panicked",
3232
"thread '$name' ($$TID) panicked",
3333
)
3434
.run();

tests/ui/const-generics/generic_const_exprs/issue-80742.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@ known-bug: #97477
33
//@ failure-status: 101
44
//@ normalize-stderr: "note: .*\n\n" -> ""
5-
//@ normalize-stderr: "thread 'rustc' panicked.*\n" -> ""
5+
//@ normalize-stderr: "thread 'rustc'.*panicked.*\n" -> ""
66
//@ normalize-stderr: "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
77
//@ rustc-env:RUST_BACKTRACE=0
88

tests/ui/intrinsics/not-overridden.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//@ build-fail
55
//@ failure-status:101
66
//@ normalize-stderr: ".*note: .*\n\n" -> ""
7-
//@ normalize-stderr: "thread 'rustc' panicked.*:\n.*\n" -> ""
7+
//@ normalize-stderr: "thread 'rustc'.*panicked.*:\n.*\n" -> ""
88
//@ normalize-stderr: "internal compiler error:.*: intrinsic const_deallocate " -> ""
99
//@ rustc-env:RUST_BACKTRACE=0
1010

tests/ui/layout/valid_range_oob.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ failure-status: 101
22
//@ normalize-stderr: "note: .*\n\n" -> ""
3-
//@ normalize-stderr: "thread 'rustc' panicked.*\n" -> ""
3+
//@ normalize-stderr: "thread 'rustc'.*panicked.*\n" -> ""
44
//@ rustc-env:RUST_BACKTRACE=0
55

66
#![feature(rustc_attrs)]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ compile-flags: -Zlint-mir -Ztreat-err-as-bug
22
//@ failure-status: 101
33
//@ normalize-stderr: "note: .*\n\n" -> ""
4-
//@ normalize-stderr: "thread 'rustc' panicked.*\n" -> ""
4+
//@ normalize-stderr: "thread 'rustc'.*panicked.*\n" -> ""
55
//@ normalize-stderr: "storage_live\[....\]" -> "storage_live[HASH]"
66
//@ normalize-stderr: "(delayed at [^:]+):\d+:\d+ - " -> "$1:LL:CC - "
77
//@ rustc-env:RUST_BACKTRACE=0

tests/ui/resolve/multiple_definitions_attribute_merging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//@known-bug: #120873
66
//@ failure-status: 101
77
//@ normalize-stderr: "note: .*\n\n" -> ""
8-
//@ normalize-stderr: "thread 'rustc' panicked.*\n" -> ""
8+
//@ normalize-stderr: "thread 'rustc'.*panicked.*\n" -> ""
99
//@ normalize-stderr: "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
1010
//@ rustc-env:RUST_BACKTRACE=0
1111

tests/ui/resolve/proc_macro_generated_packed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//@known-bug: #120873
66
//@ failure-status: 101
77
//@ normalize-stderr: "note: .*\n\n" -> ""
8-
//@ normalize-stderr: "thread 'rustc' panicked.*\n" -> ""
8+
//@ normalize-stderr: "thread 'rustc'.*panicked.*\n" -> ""
99
//@ normalize-stderr: "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
1010
//@ rustc-env:RUST_BACKTRACE=0
1111

tests/ui/track-diagnostics/track.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ LL | break rust
2525
= note: compiler flags: ... -Z ui-testing ... -Z track-diagnostics
2626

2727

28-
thread 'rustc' panicked at compiler/rustc_hir_typeck/src/lib.rs:LL:CC:
28+
thread 'rustc' ($TID) panicked at compiler/rustc_hir_typeck/src/lib.rs:LL:CC:
2929
Box<dyn Any>
3030
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
3131

tests/ui/treat-err-as-bug/err.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ compile-flags: -Ztreat-err-as-bug
22
//@ failure-status: 101
33
//@ normalize-stderr: "note: .*\n\n" -> ""
4-
//@ normalize-stderr: "thread 'rustc' panicked.*:\n.*\n" -> ""
4+
//@ normalize-stderr: "thread 'rustc'.*panicked.*:\n.*\n" -> ""
55
//@ rustc-env:RUST_BACKTRACE=0
66

77
#![crate_type = "rlib"]

tests/ui/treat-err-as-bug/span_delayed_bug.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ compile-flags: -Ztreat-err-as-bug -Zeagerly-emit-delayed-bugs
22
//@ failure-status: 101
33
//@ normalize-stderr: "note: .*\n\n" -> ""
4-
//@ normalize-stderr: "thread 'rustc' panicked.*:\n.*\n" -> ""
4+
//@ normalize-stderr: "thread 'rustc'.*panicked.*:\n.*\n" -> ""
55
//@ rustc-env:RUST_BACKTRACE=0
66

77
#![feature(rustc_attrs)]

tests/ui/type/pattern_types/bad_const_generics_args_on_const_param.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@known-bug: #127972
22
//@ failure-status: 101
33
//@ normalize-stderr: "note: .*\n\n" -> ""
4-
//@ normalize-stderr: "thread 'rustc' panicked.*\n" -> ""
4+
//@ normalize-stderr: "thread 'rustc'.*panicked.*\n" -> ""
55
//@ normalize-stderr: "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
66
//@ rustc-env:RUST_BACKTRACE=0
77

0 commit comments

Comments
 (0)