diff options
| author | Gus Caplan <me@gus.host> | 2023-03-05 18:55:30 -0800 |
|---|---|---|
| committer | Gus Caplan <me@gus.host> | 2023-03-17 20:59:28 -0700 |
| commit | d1712f49d72c3455abf275f1fb1d5b7653d02e2c (patch) | |
| tree | 0ac0279257e0af3d75c0e0ade3626e98c0b2225c /library/std/src/panic.rs | |
| parent | 13afbdaa0655dda23d7129e59ac48f1ec88b2084 (diff) | |
| download | rust-d1712f49d72c3455abf275f1fb1d5b7653d02e2c.tar.gz rust-d1712f49d72c3455abf275f1fb1d5b7653d02e2c.zip | |
move default backtrace setting to sys
Diffstat (limited to 'library/std/src/panic.rs')
| -rw-r--r-- | library/std/src/panic.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs index 9fa8f5702a8..c827205f80b 100644 --- a/library/std/src/panic.rs +++ b/library/std/src/panic.rs @@ -308,8 +308,7 @@ pub fn get_backtrace_style() -> Option<BacktraceStyle> { BacktraceStyle::Short } }) - .unwrap_or(if cfg!(target_os = "fuchsia") { - // Fuchsia components default to full backtrace. + .unwrap_or(if crate::sys::BACKTRACE_DEFAULT { BacktraceStyle::Full } else { BacktraceStyle::Off |
