use panic_fmt_nounwind for assert_unsafe_precondition
This commit is contained in:
parent
66282cb47d
commit
b61e742a39
@ -2210,8 +2210,8 @@ macro_rules! assert_unsafe_precondition {
|
||||
#[inline(always)]
|
||||
fn runtime$(<$($tt)*>)?($($i:$ty),*) {
|
||||
if !$e {
|
||||
// abort instead of panicking to reduce impact on code size
|
||||
::core::intrinsics::abort();
|
||||
// don't unwind to reduce impact on code size
|
||||
::core::panicking::panic_str_nounwind("unsafe precondition violated");
|
||||
}
|
||||
}
|
||||
#[allow(non_snake_case)]
|
||||
|
Loading…
Reference in New Issue
Block a user