Formatting.
This commit is contained in:
parent
6b2d7c4707
commit
b6180a9185
1 changed files with 6 additions and 2 deletions
|
@ -101,8 +101,12 @@ pub const fn panic_nounwind_fmt(fmt: fmt::Arguments<'_>, force_no_backtrace: boo
|
|||
}
|
||||
|
||||
// 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…
Add table
Reference in a new issue