Skip to content

Commit 4a19ef9

Browse files
committed
explain why __rust_start_panic does not take a Box
1 parent 61486f4 commit 4a19ef9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/panicking.rs

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ extern {
4747
vtable_ptr: *mut usize) -> u32;
4848

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

0 commit comments

Comments
 (0)