explain why __rust_start_panic does not take a Box
This commit is contained in:
parent
61486f4de3
commit
4a19ef938c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue