}
macro_rules! rtabort {
- ($($t:tt)*) => (crate::sys_common::util::abort(format_args!($($t)*)))
+ ($($t:tt)*) => {
+ {
+ rterr!("fatal runtime error: {}\n", format_args!($($t)*));
+ crate::sys::abort_internal();
+ }
+ }
}
macro_rules! rtassert {
}
}
-// Other platforms should use the appropriate platform-specific mechanism for
-// aborting the process. If no platform-specific mechanism is available,
-// crate::intrinsics::abort() may be used instead. The above implementations cover
-// all targets currently supported by libstd.
-
-pub fn abort(args: fmt::Arguments<'_>) -> ! {
- dumb_print(format_args!("fatal runtime error: {}\n", args));
- crate::sys::abort_internal();
-}
-
#[allow(dead_code)] // stack overflow detection not enabled on all platforms
pub unsafe fn report_overflow() {
dumb_print(format_args!(