Formatting.
This commit is contained in:
parent
6b2d7c4707
commit
b6180a9185
@ -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.
|
// PanicInfo with the `can_unwind` flag set to false forces an abort.
|
||||||
let pi =
|
let pi = PanicInfo::new(
|
||||||
PanicInfo::new(fmt, Location::caller(), /* can_unwind */ false, force_no_backtrace);
|
fmt,
|
||||||
|
Location::caller(),
|
||||||
|
/* can_unwind */ false,
|
||||||
|
force_no_backtrace,
|
||||||
|
);
|
||||||
|
|
||||||
// SAFETY: `panic_impl` is defined in safe Rust code and thus is safe to call.
|
// SAFETY: `panic_impl` is defined in safe Rust code and thus is safe to call.
|
||||||
unsafe { panic_impl(&pi) }
|
unsafe { panic_impl(&pi) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user