We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 904fef0 commit 9f25a04Copy full SHA for 9f25a04
library/std/src/panicking.rs
@@ -272,7 +272,7 @@ fn default_hook(info: &PanicInfo<'_>) {
272
drop(backtrace::print(err, crate::backtrace_rs::PrintFmt::Full))
273
}
274
Some(BacktraceStyle::Off) => {
275
- if FIRST_PANIC.swap(false, Ordering::SeqCst) {
+ if FIRST_PANIC.swap(false, Ordering::Relaxed) {
276
let _ = writeln!(
277
err,
278
"note: run with `RUST_BACKTRACE=1` environment variable to display a \
0 commit comments