mirror of
https://github.com/rust-lang/rust
synced 2024-10-06 08:40:35 +00:00
Formatting.
This commit is contained in:
parent
6b2d7c4707
commit
b6180a9185
|
@ -101,8 +101,12 @@ fn runtime(fmt: fmt::Arguments<'_>, force_no_backtrace: bool) -> ! {
|
|||
}
|
||||
|
||||
// PanicInfo with the `can_unwind` flag set to false forces an abort.
|
||||
let pi =
|
||||
PanicInfo::new(fmt, Location::caller(), /* can_unwind */ false, force_no_backtrace);
|
||||
let pi = PanicInfo::new(
|
||||
fmt,
|
||||
Location::caller(),
|
||||
/* can_unwind */ false,
|
||||
force_no_backtrace,
|
||||
);
|
||||
|
||||
// SAFETY: `panic_impl` is defined in safe Rust code and thus is safe to call.
|
||||
unsafe { panic_impl(&pi) }
|
||||
|
|
Loading…
Reference in a new issue