We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65a1645 + 51f083b commit ae7b16cCopy full SHA for ae7b16c
std/src/panic.rs
@@ -308,8 +308,7 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> {
308
BacktraceStyle::Short
309
}
310
})
311
- .unwrap_or(if cfg!(target_os = "fuchsia") {
312
- // Fuchsia components default to full backtrace.
+ .unwrap_or(if crate::sys::FULL_BACKTRACE_DEFAULT {
313
BacktraceStyle::Full
314
} else {
315
BacktraceStyle::Off
std/src/sys/mod.rs
@@ -76,3 +76,12 @@ cfg_if::cfg_if! {
76
pub mod c;
77
78
79
+
80
+cfg_if::cfg_if! {
81
+ // Fuchsia components default to full backtrace.
82
+ if #[cfg(target_os = "fuchsia")] {
83
+ pub const FULL_BACKTRACE_DEFAULT: bool = true;
84
+ } else {
85
+ pub const FULL_BACKTRACE_DEFAULT: bool = false;
86
+ }
87
+}
0 commit comments