File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ type Payload = Box<Box<dyn Any + Send>>;
8
8
9
9
extern "Rust" {
10
10
/// Miri-provided extern function to begin unwinding.
11
- fn miri_start_panic ( payload : * mut u8 ) -> !;
11
+ fn miri_start_unwind ( payload : * mut u8 ) -> !;
12
12
}
13
13
14
14
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
16
16
// in `cleanup` below. So we just box it up once, to get something pointer-sized.
17
17
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 )
19
19
}
20
20
21
21
pub unsafe fn cleanup ( payload_box : * mut u8 ) -> Box < dyn Any + Send > {
You can’t perform that action at this time.
0 commit comments