diff options
| author | Ralf Jung <post@ralfj.de> | 2019-11-26 09:29:39 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-11-26 09:29:39 +0100 |
| commit | 4a19ef938c3670afb8cc278d3d31a803b19addab (patch) | |
| tree | 5cbb1ec9b92d1011ce27af6746475ab4bc197555 | |
| parent | 61486f4de3b5e04f401a4da2edae2fc4c9f02bc7 (diff) | |
| download | rust-4a19ef938c3670afb8cc278d3d31a803b19addab.tar.gz rust-4a19ef938c3670afb8cc278d3d31a803b19addab.zip | |
explain why __rust_start_panic does not take a Box
| -rw-r--r-- | src/libstd/panicking.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/panicking.rs b/src/libstd/panicking.rs index 8f9a4c05b57..e0d980fc306 100644 --- a/src/libstd/panicking.rs +++ b/src/libstd/panicking.rs @@ -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; } |
