We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a345c3d commit a6e23b1Copy full SHA for a6e23b1
library/std/src/panicking.rs
@@ -768,7 +768,9 @@ fn rust_panic_with_hook(
768
// recursive panics. However if the message is just a string, no user-defined
769
// code is involved in printing it, so that is risk-free.
770
let message: &str = payload.as_str().unwrap_or_default();
771
- rtprintpanic!("panicked at {location}:\n{message}\nthread panicked while processing panic. aborting.\n");
+ rtprintpanic!(
772
+ "panicked at {location}:\n{message}\nthread panicked while processing panic. aborting.\n"
773
+ );
774
}
775
panic_count::MustAbort::AlwaysAbort => {
776
// Unfortunately, this does not print a backtrace, because creating
0 commit comments