Skip to content

Commit 2305457

Browse files
committed
miri: rename miri_start_panic → miri_start_unwind
1 parent 9e43ea8 commit 2305457

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

panic_unwind/src/miri.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ type Payload = Box<Box<dyn Any + Send>>;
88

99
extern "Rust" {
1010
/// Miri-provided extern function to begin unwinding.
11-
fn miri_start_panic(payload: *mut u8) -> !;
11+
fn miri_start_unwind(payload: *mut u8) -> !;
1212
}
1313

1414
pub unsafe fn panic(payload: Box<dyn Any + Send>) -> u32 {
15-
// The payload we pass to `miri_start_panic` will be exactly the argument we get
15+
// The payload we pass to `miri_start_unwind` will be exactly the argument we get
1616
// in `cleanup` below. So we just box it up once, to get something pointer-sized.
1717
let payload_box: Payload = Box::new(payload);
18-
miri_start_panic(Box::into_raw(payload_box) as *mut u8)
18+
miri_start_unwind(Box::into_raw(payload_box) as *mut u8)
1919
}
2020

2121
pub unsafe fn cleanup(payload_box: *mut u8) -> Box<dyn Any + Send> {

0 commit comments

Comments
 (0)