Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Mar 18, 2023
1 parent d1712f4 commit 3ae03c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/std/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions library/std/src/sys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 3ae03c7

Please sign in to comment.