Skip to content

Commit 7524eb2

Browse files
committed
update a seemingly outdated comment
1 parent 29bed26 commit 7524eb2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/std/src/panicking.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ use realstd::io::set_output_capture;
4444
extern "C" {
4545
fn __rust_panic_cleanup(payload: *mut u8) -> *mut (dyn Any + Send + 'static);
4646

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`.
47+
/// `payload` is actually a `Box<dyn BoxMeUp>`, but we pass this by-reference because the other
48+
/// end of this call does not depend on liballoc, and thus cannot use `Box`.
5049
#[unwind(allowed)]
5150
fn __rust_start_panic(payload: *mut &mut dyn BoxMeUp) -> u32;
5251
}

0 commit comments

Comments
 (0)