Rollup merge of #108798 - devsnek:panic-pal-exception, r=workingjubilee
move default backtrace setting to sys another PAL exception. moves the default backtrace setting to sys.
This commit is contained in:
commit
e458a7949f
@ -308,8 +308,7 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> {
|
|||||||
BacktraceStyle::Short
|
BacktraceStyle::Short
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.unwrap_or(if cfg!(target_os = "fuchsia") {
|
.unwrap_or(if crate::sys::FULL_BACKTRACE_DEFAULT {
|
||||||
// Fuchsia components default to full backtrace.
|
|
||||||
BacktraceStyle::Full
|
BacktraceStyle::Full
|
||||||
} else {
|
} else {
|
||||||
BacktraceStyle::Off
|
BacktraceStyle::Off
|
||||||
|
@ -76,3 +76,12 @@
|
|||||||
pub mod c;
|
pub mod c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cfg_if::cfg_if! {
|
||||||
|
// Fuchsia components default to full backtrace.
|
||||||
|
if #[cfg(target_os = "fuchsia")] {
|
||||||
|
pub const FULL_BACKTRACE_DEFAULT: bool = true;
|
||||||
|
} else {
|
||||||
|
pub const FULL_BACKTRACE_DEFAULT: bool = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -59,7 +59,6 @@
|
|||||||
"library/std/src/path.rs",
|
"library/std/src/path.rs",
|
||||||
"library/std/src/sys_common", // Should only contain abstractions over platforms
|
"library/std/src/sys_common", // Should only contain abstractions over platforms
|
||||||
"library/std/src/net/test.rs", // Utility helpers for tests
|
"library/std/src/net/test.rs", // Utility helpers for tests
|
||||||
"library/std/src/panic.rs", // fuchsia-specific panic backtrace handling
|
|
||||||
"library/std/src/personality.rs",
|
"library/std/src/personality.rs",
|
||||||
"library/std/src/personality/",
|
"library/std/src/personality/",
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user