File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 15
15
#![ feature( staged_api) ]
16
16
#![ feature( rustc_attrs) ]
17
17
#![ feature( asm) ]
18
+ #![ feature( c_unwind) ]
18
19
19
20
#[ cfg( target_os = "android" ) ]
20
21
mod android;
@@ -30,7 +31,7 @@ pub unsafe extern "C" fn __rust_panic_cleanup(_: *mut u8) -> *mut (dyn Any + Sen
30
31
31
32
// "Leak" the payload and shim to the relevant abort on the platform in question.
32
33
#[ rustc_std_internal_symbol]
33
- pub unsafe extern "C" fn __rust_start_panic ( _payload : * mut & mut dyn BoxMeUp ) -> u32 {
34
+ pub unsafe extern "C-unwind " fn __rust_start_panic ( _payload : * mut & mut dyn BoxMeUp ) -> u32 {
34
35
// Android has the ability to attach a message as part of the abort.
35
36
#[ cfg( target_os = "android" ) ]
36
37
android:: android_set_abort_message ( _payload) ;
You can’t perform that action at this time.
0 commit comments