Add missing panic_in_cleanup
This commit is contained in:
parent
e7f7fb87dd
commit
ad5637468e
1 changed files with 9 additions and 0 deletions
|
@ -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) -> ! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue