Skip to content

Commit 3ae03c7

Browse files
committedMar 18, 2023
review
1 parent d1712f4 commit 3ae03c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎library/std/src/panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> {
308308
BacktraceStyle::Short
309309
}
310310
})
311-
.unwrap_or(if crate::sys::BACKTRACE_DEFAULT {
311+
.unwrap_or(if crate::sys::FULL_BACKTRACE_DEFAULT {
312312
BacktraceStyle::Full
313313
} else {
314314
BacktraceStyle::Off

‎library/std/src/sys/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ cfg_if::cfg_if! {
8080
cfg_if::cfg_if! {
8181
// Fuchsia components default to full backtrace.
8282
if #[cfg(target_os = "fuchsia")] {
83-
pub const BACKTRACE_DEFAULT: bool = true;
83+
pub const FULL_BACKTRACE_DEFAULT: bool = true;
8484
} else {
85-
pub const BACKTRACE_DEFAULT: bool = false;
85+
pub const FULL_BACKTRACE_DEFAULT: bool = false;
8686
}
8787
}

0 commit comments

Comments
 (0)
Please sign in to comment.