File tree Expand file tree Collapse file tree 7 files changed +59
-7
lines changed Expand file tree Collapse file tree 7 files changed +59
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,15 @@ fn panic(_: &PanicInfo) -> ! {
12
12
}
13
13
14
14
#[ lang = "eh_personality" ]
15
- fn eh ( ) { }
15
+ fn eh (
16
+ _version : i32 ,
17
+ _actions : i32 ,
18
+ _exception_class : u64 ,
19
+ _exception_object : * mut ( ) ,
20
+ _context : * mut ( ) ,
21
+ ) -> i32 {
22
+ loop { }
23
+ }
16
24
17
25
#[ alloc_error_handler]
18
26
fn oom ( _: Layout ) -> ! {
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ extern "C" fn __rust_foreign_exception() -> ! {
21
21
}
22
22
23
23
#[ lang = "eh_personality" ]
24
- fn eh_personality ( ) {
24
+ fn eh_personality (
25
+ _version : i32 ,
26
+ _actions : i32 ,
27
+ _exception_class : u64 ,
28
+ _exception_object : * mut ( ) ,
29
+ _context : * mut ( ) ,
30
+ ) -> i32 {
25
31
loop { }
26
32
}
Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ fn panic_handler(_: &core::panic::PanicInfo) -> ! {
12
12
}
13
13
14
14
#[ no_mangle]
15
- extern "C" fn rust_eh_personality ( ) {
15
+ extern "C" fn rust_eh_personality (
16
+ _version : i32 ,
17
+ _actions : i32 ,
18
+ _exception_class : u64 ,
19
+ _exception_object : * mut ( ) ,
20
+ _context : * mut ( ) ,
21
+ ) -> i32 {
16
22
loop { }
17
23
}
18
24
Original file line number Diff line number Diff line change @@ -70,7 +70,15 @@ fn panic(panic_info: &core::panic::PanicInfo) -> ! {
70
70
// in these libraries will refer to `rust_eh_personality` if LLVM can not *prove* the contents won't
71
71
// unwind. So, for this test case we will define the symbol.
72
72
#[ lang = "eh_personality" ]
73
- extern "C" fn rust_eh_personality ( ) { }
73
+ extern "C" fn rust_eh_personality (
74
+ _version : i32 ,
75
+ _actions : i32 ,
76
+ _exception_class : u64 ,
77
+ _exception_object : * mut ( ) ,
78
+ _context : * mut ( ) ,
79
+ ) -> i32 {
80
+ loop { }
81
+ }
74
82
75
83
#[ derive( Default , Debug ) ]
76
84
struct Page ( #[ allow( dead_code) ] [ [ u64 ; 32 ] ; 16 ] ) ;
Original file line number Diff line number Diff line change @@ -57,7 +57,15 @@ fn panic(panic_info: &core::panic::PanicInfo) -> ! {
57
57
// in these libraries will refer to `rust_eh_personality` if LLVM can not *prove* the contents won't
58
58
// unwind. So, for this test case we will define the symbol.
59
59
#[ lang = "eh_personality" ]
60
- extern "C" fn rust_eh_personality ( ) { }
60
+ extern "C" fn rust_eh_personality (
61
+ _version : i32 ,
62
+ _actions : i32 ,
63
+ _exception_class : u64 ,
64
+ _exception_object : * mut ( ) ,
65
+ _context : * mut ( ) ,
66
+ ) -> i32 {
67
+ loop { }
68
+ }
61
69
62
70
#[ derive( Default , Debug ) ]
63
71
struct Page ( #[ allow( dead_code) ] [ [ u64 ; 32 ] ; 16 ] ) ;
Original file line number Diff line number Diff line change @@ -12,4 +12,12 @@ pub fn begin_panic_handler(_info: &core::panic::PanicInfo<'_>) -> ! {
12
12
}
13
13
14
14
#[ lang = "eh_personality" ]
15
- extern "C" fn eh_personality ( ) { }
15
+ extern "C" fn eh_personality (
16
+ _version : i32 ,
17
+ _actions : i32 ,
18
+ _exception_class : u64 ,
19
+ _exception_object : * mut ( ) ,
20
+ _context : * mut ( ) ,
21
+ ) -> i32 {
22
+ loop { }
23
+ }
Original file line number Diff line number Diff line change @@ -21,4 +21,12 @@ pub fn test(_: DropMe) {
21
21
}
22
22
23
23
#[ rustc_std_internal_symbol]
24
- pub unsafe extern "C" fn rust_eh_personality ( ) { }
24
+ pub unsafe extern "C" fn rust_eh_personality (
25
+ _version : i32 ,
26
+ _actions : i32 ,
27
+ _exception_class : u64 ,
28
+ _exception_object : * mut ( ) ,
29
+ _context : * mut ( ) ,
30
+ ) -> i32 {
31
+ loop { }
32
+ }
You can’t perform that action at this time.
0 commit comments