explain why __rust_start_panic does not take a Box

This commit is contained in:
Ralf Jung 2019-11-26 09:29:39 +01:00
parent 61486f4de3
commit 4a19ef938c
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ extern {
vtable_ptr: *mut usize) -> u32;
/// `payload` is actually a `*mut &mut dyn BoxMeUp` but that would cause FFI warnings.
/// It cannot be `Box<dyn BoxMeUp>` because the other end of this call does not depend
/// on liballoc, and thus cannot use `Box`.
#[unwind(allowed)]
fn __rust_start_panic(payload: usize) -> u32;
}