File tree 2 files changed +6
-11
lines changed
library/std/src/sys_common
2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,12 @@ macro_rules! rterr {
48
48
}
49
49
50
50
macro_rules! rtabort {
51
- ( $( $t: tt) * ) => ( crate :: sys_common:: util:: abort( format_args!( $( $t) * ) ) )
51
+ ( $( $t: tt) * ) => {
52
+ {
53
+ rterr!( "fatal runtime error: {}\n " , format_args!( $( $t) * ) ) ;
54
+ crate :: sys:: abort_internal( ) ;
55
+ }
56
+ }
52
57
}
53
58
54
59
macro_rules! rtassert {
Original file line number Diff line number Diff line change @@ -9,16 +9,6 @@ pub fn dumb_print(args: fmt::Arguments<'_>) {
9
9
}
10
10
}
11
11
12
- // Other platforms should use the appropriate platform-specific mechanism for
13
- // aborting the process. If no platform-specific mechanism is available,
14
- // crate::intrinsics::abort() may be used instead. The above implementations cover
15
- // all targets currently supported by libstd.
16
-
17
- pub fn abort ( args : fmt:: Arguments < ' _ > ) -> ! {
18
- dumb_print ( format_args ! ( "fatal runtime error: {}\n " , args) ) ;
19
- crate :: sys:: abort_internal ( ) ;
20
- }
21
-
22
12
#[ allow( dead_code) ] // stack overflow detection not enabled on all platforms
23
13
pub unsafe fn report_overflow ( ) {
24
14
dumb_print ( format_args ! (
You can’t perform that action at this time.
0 commit comments