Skip to content

Commit e7d92d2

Browse files
committed
[rebase] Add SEH personality stubs (unused)
1 parent 2fb70e2 commit e7d92d2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/libstd/rt/unwind/seh.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use prelude::v1::*;
12+
1113
use any::Any;
1214
use intrinsics;
13-
use prelude::v1::*;
15+
use libc::c_void;
1416

1517
pub unsafe fn panic(_data: Box<Any + Send + 'static>) -> ! {
1618
intrinsics::abort();
@@ -19,3 +21,10 @@ pub unsafe fn panic(_data: Box<Any + Send + 'static>) -> ! {
1921
pub unsafe fn cleanup(_ptr: *mut c_void) -> Box<Any + Send + 'static> {
2022
intrinsics::abort();
2123
}
24+
25+
#[lang = "eh_personality"]
26+
#[no_mangle]
27+
pub extern fn rust_eh_personality() {}
28+
29+
#[no_mangle]
30+
pub extern fn rust_eh_personality_catch() {}

0 commit comments

Comments
 (0)