We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66282cb commit b61e742Copy full SHA for b61e742
library/core/src/intrinsics.rs
@@ -2210,8 +2210,8 @@ macro_rules! assert_unsafe_precondition {
2210
#[inline(always)]
2211
fn runtime$(<$($tt)*>)?($($i:$ty),*) {
2212
if !$e {
2213
- // abort instead of panicking to reduce impact on code size
2214
- ::core::intrinsics::abort();
+ // don't unwind to reduce impact on code size
+ ::core::panicking::panic_str_nounwind("unsafe precondition violated");
2215
}
2216
2217
#[allow(non_snake_case)]
0 commit comments