File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -308,8 +308,7 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> {
308
308
BacktraceStyle :: Short
309
309
}
310
310
} )
311
- . unwrap_or ( if cfg ! ( target_os = "fuchsia" ) {
312
- // Fuchsia components default to full backtrace.
311
+ . unwrap_or ( if crate :: sys:: BACKTRACE_DEFAULT {
313
312
BacktraceStyle :: Full
314
313
} else {
315
314
BacktraceStyle :: Off
Original file line number Diff line number Diff line change @@ -76,3 +76,12 @@ cfg_if::cfg_if! {
76
76
pub mod c;
77
77
}
78
78
}
79
+
80
+ cfg_if:: cfg_if! {
81
+ // Fuchsia components default to full backtrace.
82
+ if #[ cfg( target_os = "fuchsia" ) ] {
83
+ pub const BACKTRACE_DEFAULT : bool = true ;
84
+ } else {
85
+ pub const BACKTRACE_DEFAULT : bool = false ;
86
+ }
87
+ }
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ const EXCEPTION_PATHS: &[&str] = &[
59
59
"library/std/src/path.rs" ,
60
60
"library/std/src/sys_common" , // Should only contain abstractions over platforms
61
61
"library/std/src/net/test.rs" , // Utility helpers for tests
62
- "library/std/src/panic.rs" , // fuchsia-specific panic backtrace handling
63
62
"library/std/src/personality.rs" ,
64
63
"library/std/src/personality/" ,
65
64
] ;
You can’t perform that action at this time.
0 commit comments