File tree 5 files changed +33
-5
lines changed
5 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -179,8 +179,6 @@ regexes! {
179
179
r" +at (.*\.rs)" => " at $1" ,
180
180
// erase generics in backtraces
181
181
"([0-9]+: .*)::<.*>" => "$1" ,
182
- // erase addresses in backtraces
183
- "([0-9]+: ) +0x[0-9a-f]+ - (.*)" => "$1$2" ,
184
182
// erase long hexadecimals
185
183
r"0x[0-9a-fA-F]+[0-9a-fA-F]{2,2}" => "$$HEX" ,
186
184
// erase specific alignments
@@ -192,7 +190,7 @@ regexes! {
192
190
// Windows file paths
193
191
r"\\" => "/" ,
194
192
// erase Rust stdlib path
195
- "[^ `]*/(rust[^/]*|checkout)/library/" => "RUSTLIB/" ,
193
+ "[^ \n `]*/(rust[^/]*|checkout)/library/" => "RUSTLIB/" ,
196
194
// erase platform file paths
197
195
"sys/[a-z]+/" => "sys/PLATFORM/" ,
198
196
// erase paths into the crate registry
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ fn main() {
41
41
eprintln ! ( "{}" , out) ;
42
42
// Print the 'main' frame (and everything before it) to stdout, skipping
43
43
// the printing of internal (and possibly fragile) libstd frames.
44
+ // Stdout is less normalized so we see more, but it also means we can print less
45
+ // as platform differences would lead to test suite failures.
44
46
if !seen_main {
45
47
println ! ( "{}" , out) ;
46
48
seen_main = name == "main" ;
Original file line number Diff line number Diff line change @@ -2,4 +2,17 @@ $DIR/backtrace-api-v0.rs:LL:CC (func_d)
2
2
$DIR/backtrace-api-v0.rs:LL:CC (func_c)
3
3
$DIR/backtrace-api-v0.rs:LL:CC (func_b)
4
4
$DIR/backtrace-api-v0.rs:LL:CC (func_a)
5
- $DIR/backtrace-api-v0.rs:LL:CC RUSTLIB/core/src/ops/function.rs:LL:CC (<fn() as std::ops::FnOnce<()>>::call_once - RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC (std::sys_common::backtrace::__rust_begin_short_backtrace)
5
+ $DIR/backtrace-api-v0.rs:LL:CC (main)
6
+ RUSTLIB/core/src/ops/function.rs:LL:CC (<fn() as std::ops::FnOnce<()>>::call_once - shim(fn()))
7
+ RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC (std::sys_common::backtrace::__rust_begin_short_backtrace)
8
+ RUSTLIB/std/src/rt.rs:LL:CC (std::rt::lang_start::{closure#0})
9
+ RUSTLIB/core/src/ops/function.rs:LL:CC (std::ops::function::impls::call_once)
10
+ RUSTLIB/std/src/panicking.rs:LL:CC (std::panicking::r#try::do_call)
11
+ RUSTLIB/std/src/panicking.rs:LL:CC (std::panicking::r#try)
12
+ RUSTLIB/std/src/panic.rs:LL:CC (std::panic::catch_unwind)
13
+ RUSTLIB/std/src/rt.rs:LL:CC (std::rt::lang_start_internal::{closure#2})
14
+ RUSTLIB/std/src/panicking.rs:LL:CC (std::panicking::r#try::do_call)
15
+ RUSTLIB/std/src/panicking.rs:LL:CC (std::panicking::r#try)
16
+ RUSTLIB/std/src/panic.rs:LL:CC (std::panic::catch_unwind)
17
+ RUSTLIB/std/src/rt.rs:LL:CC (std::rt::lang_start_internal)
18
+ RUSTLIB/std/src/rt.rs:LL:CC (std::rt::lang_start)
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ fn main() {
54
54
eprintln ! ( "{}" , out) ;
55
55
// Print the 'main' frame (and everything before it) to stdout, skipping
56
56
// the printing of internal (and possibly fragile) libstd frames.
57
+ // Stdout is less normalized so we see more, but it also means we can print less
58
+ // as platform differences would lead to test suite failures.
57
59
if !seen_main {
58
60
println ! ( "{}" , out) ;
59
61
seen_main = name == "main" ;
Original file line number Diff line number Diff line change @@ -2,4 +2,17 @@ $DIR/backtrace-api-v1.rs:LL:CC (func_d)
2
2
$DIR/backtrace-api-v1.rs:LL:CC (func_c)
3
3
$DIR/backtrace-api-v1.rs:LL:CC (func_b)
4
4
$DIR/backtrace-api-v1.rs:LL:CC (func_a)
5
- $DIR/backtrace-api-v1.rs:LL:CC RUSTLIB/core/src/ops/function.rs:LL:CC (<fn() as std::ops::FnOnce<()>>::call_once - RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC (std::sys_common::backtrace::__rust_begin_short_backtrace)
5
+ $DIR/backtrace-api-v1.rs:LL:CC (main)
6
+ RUSTLIB/core/src/ops/function.rs:LL:CC (<fn() as std::ops::FnOnce<()>>::call_once - shim(fn()))
7
+ RUSTLIB/std/src/sys_common/backtrace.rs:LL:CC (std::sys_common::backtrace::__rust_begin_short_backtrace)
8
+ RUSTLIB/std/src/rt.rs:LL:CC (std::rt::lang_start::{closure#0})
9
+ RUSTLIB/core/src/ops/function.rs:LL:CC (std::ops::function::impls::call_once)
10
+ RUSTLIB/std/src/panicking.rs:LL:CC (std::panicking::r#try::do_call)
11
+ RUSTLIB/std/src/panicking.rs:LL:CC (std::panicking::r#try)
12
+ RUSTLIB/std/src/panic.rs:LL:CC (std::panic::catch_unwind)
13
+ RUSTLIB/std/src/rt.rs:LL:CC (std::rt::lang_start_internal::{closure#2})
14
+ RUSTLIB/std/src/panicking.rs:LL:CC (std::panicking::r#try::do_call)
15
+ RUSTLIB/std/src/panicking.rs:LL:CC (std::panicking::r#try)
16
+ RUSTLIB/std/src/panic.rs:LL:CC (std::panic::catch_unwind)
17
+ RUSTLIB/std/src/rt.rs:LL:CC (std::rt::lang_start_internal)
18
+ RUSTLIB/std/src/rt.rs:LL:CC (std::rt::lang_start)
You can’t perform that action at this time.
0 commit comments