1
Fork 0

Add missing panic_in_cleanup

This commit is contained in:
Antoni Boucher 2023-10-09 11:08:42 -04:00
parent e7f7fb87dd
commit ad5637468e

View file

@ -429,6 +429,15 @@ fn panic_cannot_unwind() -> ! {
}
}
#[lang = "panic_in_cleanup"]
#[rustc_nounwind]
fn panic_in_cleanup() -> ! {
unsafe {
libc::printf("panic in a destructor during cleanup\n\0" as *const str as *const i8);
intrinsics::abort();
}
}
#[lang = "panic_bounds_check"]
#[track_caller]
fn panic_bounds_check(index: usize, len: usize) -> ! {