diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-03-19 15:33:56 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-19 15:33:56 +0530 |
| commit | e458a7949ffa5fe4280fcf7cae4daf6ff80269c9 (patch) | |
| tree | 92378043b8bf193fed960405ab0328a58dc7f2a6 /library/std/src/sys | |
| parent | e9c25b4ad5a78e7a125efec5bc050abe1eff293e (diff) | |
| parent | 3ae03c7aee740eda1f18ec7c189bc705cfb44964 (diff) | |
| download | rust-e458a7949ffa5fe4280fcf7cae4daf6ff80269c9.tar.gz rust-e458a7949ffa5fe4280fcf7cae4daf6ff80269c9.zip | |
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.
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/mod.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/library/std/src/sys/mod.rs b/library/std/src/sys/mod.rs index c080c176a2a..e767b2866cb 100644 --- a/library/std/src/sys/mod.rs +++ b/library/std/src/sys/mod.rs @@ -76,3 +76,12 @@ cfg_if::cfg_if! { 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; + } +} |
