We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29bed26 commit 7524eb2Copy full SHA for 7524eb2
library/std/src/panicking.rs
@@ -44,9 +44,8 @@ use realstd::io::set_output_capture;
44
extern "C" {
45
fn __rust_panic_cleanup(payload: *mut u8) -> *mut (dyn Any + Send + 'static);
46
47
- /// `payload` is actually a `*mut &mut dyn BoxMeUp` but that would cause FFI warnings.
48
- /// It cannot be `Box<dyn BoxMeUp>` because the other end of this call does not depend
49
- /// on liballoc, and thus cannot use `Box`.
+ /// `payload` is actually a `Box<dyn BoxMeUp>`, but we pass this by-reference because the other
+ /// end of this call does not depend on liballoc, and thus cannot use `Box`.
50
#[unwind(allowed)]
51
fn __rust_start_panic(payload: *mut &mut dyn BoxMeUp) -> u32;
52
}
0 commit comments