@@ -20,7 +20,7 @@ use crate::sync::atomic::{AtomicBool, Ordering};
20
20
use crate :: sys:: stdio:: panic_output;
21
21
use crate :: sys_common:: backtrace:: { self , RustBacktrace } ;
22
22
use crate :: sys_common:: rwlock:: RWLock ;
23
- use crate :: sys_common:: { thread_info, util } ;
23
+ use crate :: sys_common:: thread_info;
24
24
use crate :: thread;
25
25
26
26
#[ cfg( not( test) ) ]
@@ -596,15 +596,15 @@ fn rust_panic_with_hook(
596
596
if panics > 2 {
597
597
// Don't try to print the message in this case
598
598
// - perhaps that is causing the recursive panics.
599
- util :: dumb_print ( format_args ! ( "thread panicked while processing panic. aborting.\n " ) ) ;
599
+ rterr ! ( "thread panicked while processing panic. aborting.\n " ) ;
600
600
} else {
601
601
// Unfortunately, this does not print a backtrace, because creating
602
602
// a `Backtrace` will allocate, which we must to avoid here.
603
603
let panicinfo = PanicInfo :: internal_constructor ( message, location) ;
604
- util :: dumb_print ( format_args ! (
604
+ rterr ! (
605
605
"{}\n panicked after panic::always_abort(), aborting.\n " ,
606
606
panicinfo
607
- ) ) ;
607
+ ) ;
608
608
}
609
609
intrinsics:: abort ( )
610
610
}
@@ -637,7 +637,7 @@ fn rust_panic_with_hook(
637
637
// have limited options. Currently our preference is to
638
638
// just abort. In the future we may consider resuming
639
639
// unwinding or otherwise exiting the thread cleanly.
640
- util :: dumb_print ( format_args ! ( "thread panicked while panicking. aborting.\n " ) ) ;
640
+ rterr ! ( "thread panicked while panicking. aborting.\n " ) ;
641
641
intrinsics:: abort ( )
642
642
}
643
643
0 commit comments