We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
C-unwind
__rust_start_panic
panic_abort
1 parent d4ad1cf commit 7520ea9Copy full SHA for 7520ea9
library/panic_abort/src/lib.rs
@@ -15,6 +15,7 @@
15
#![feature(staged_api)]
16
#![feature(rustc_attrs)]
17
#![feature(asm)]
18
+#![feature(c_unwind)]
19
20
#[cfg(target_os = "android")]
21
mod android;
@@ -30,7 +31,7 @@ pub unsafe extern "C" fn __rust_panic_cleanup(_: *mut u8) -> *mut (dyn Any + Sen
30
31
32
// "Leak" the payload and shim to the relevant abort on the platform in question.
33
#[rustc_std_internal_symbol]
-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 {
35
// Android has the ability to attach a message as part of the abort.
36
37
android::android_set_abort_message(_payload);
0 commit comments