mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
review
This commit is contained in:
parent
d1712f49d7
commit
3ae03c7aee
@ -308,7 +308,7 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> {
|
||||
BacktraceStyle::Short
|
||||
}
|
||||
})
|
||||
.unwrap_or(if crate::sys::BACKTRACE_DEFAULT {
|
||||
.unwrap_or(if crate::sys::FULL_BACKTRACE_DEFAULT {
|
||||
BacktraceStyle::Full
|
||||
} else {
|
||||
BacktraceStyle::Off
|
||||
|
@ -80,8 +80,8 @@ cfg_if::cfg_if! {
|
||||
cfg_if::cfg_if! {
|
||||
// Fuchsia components default to full backtrace.
|
||||
if #[cfg(target_os = "fuchsia")] {
|
||||
pub const BACKTRACE_DEFAULT: bool = true;
|
||||
pub const FULL_BACKTRACE_DEFAULT: bool = true;
|
||||
} else {
|
||||
pub const BACKTRACE_DEFAULT: bool = false;
|
||||
pub const FULL_BACKTRACE_DEFAULT: bool = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user