File tree 3 files changed +3
-12
lines changed
3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ lto = true
21
21
22
22
[dependencies ]
23
23
rlibc = " *"
24
+ panic-abort = " 0.3.1"
24
25
25
26
[build-dependencies ]
26
27
bindgen = " 0.37.0"
Original file line number Diff line number Diff line change 1
- use core:: intrinsics:: abort;
2
- use core:: panic:: PanicInfo ;
3
-
4
- #[ panic_handler]
5
- fn panic ( _info : & PanicInfo ) -> ! {
6
- unsafe {
7
- abort ( ) ;
8
- }
9
- }
10
-
11
1
pub enum c_void { }
12
2
pub type c_char = i8 ;
13
3
pub type c_int = i32 ;
Original file line number Diff line number Diff line change 4
4
#![ allow( non_snake_case) ]
5
5
#![ feature( core_intrinsics) ]
6
6
7
- use core :: intrinsics :: abort ;
7
+ extern crate panic_abort ;
8
8
9
9
include ! ( concat!( env!( "OUT_DIR" ) , "/bindings.rs" ) ) ;
10
10
@@ -35,7 +35,7 @@ pub extern "C" fn main() -> ! {
35
35
}
36
36
37
37
gfxExit ( ) ;
38
- abort ( ) ;
38
+ panic ! ( "Success. We shall however think on a way of exiting cleanly." ) ;
39
39
}
40
40
}
41
41
You can’t perform that action at this time.
0 commit comments