@@ -20,7 +20,7 @@ use crate::sync::atomic::{AtomicBool, Ordering};
2020use crate :: sys:: stdio:: panic_output;
2121use crate :: sys_common:: backtrace:: { self , RustBacktrace } ;
2222use crate :: sys_common:: rwlock:: RWLock ;
23- use crate :: sys_common:: { thread_info, util } ;
23+ use crate :: sys_common:: thread_info;
2424use crate :: thread;
2525
2626#[ cfg( not( test) ) ]
@@ -596,15 +596,15 @@ fn rust_panic_with_hook(
596596 if panics > 2 {
597597 // Don't try to print the message in this case
598598 // - 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 " ) ;
600600 } else {
601601 // Unfortunately, this does not print a backtrace, because creating
602602 // a `Backtrace` will allocate, which we must to avoid here.
603603 let panicinfo = PanicInfo :: internal_constructor ( message, location) ;
604- util :: dumb_print ( format_args ! (
604+ rterr ! (
605605 "{}\n panicked after panic::always_abort(), aborting.\n " ,
606606 panicinfo
607- ) ) ;
607+ ) ;
608608 }
609609 intrinsics:: abort ( )
610610 }
@@ -637,7 +637,7 @@ fn rust_panic_with_hook(
637637 // have limited options. Currently our preference is to
638638 // just abort. In the future we may consider resuming
639639 // 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 " ) ;
641641 intrinsics:: abort ( )
642642 }
643643
0 commit comments