We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d12c3c commit b804c0dCopy full SHA for b804c0d
library/std/src/panicking.rs
@@ -699,7 +699,11 @@ fn rust_panic_with_hook(
699
// have limited options. Currently our preference is to
700
// just abort. In the future we may consider resuming
701
// unwinding or otherwise exiting the thread cleanly.
702
- rtprintpanic!("thread panicked while panicking. aborting.\n");
+ if !can_unwind {
703
+ rtprintpanic!("thread caused non-unwinding panic. aborting.\n");
704
+ } else {
705
+ rtprintpanic!("thread panicked while panicking. aborting.\n");
706
+ }
707
crate::sys::abort_internal();
708
}
709
0 commit comments