@@ -19,8 +19,8 @@ use crate::mem::{self, ManuallyDrop};
1919use crate :: process;
2020use crate :: sync:: atomic:: { AtomicBool , Ordering } ;
2121use crate :: sync:: { PoisonError , RwLock } ;
22+ use crate :: sys:: backtrace;
2223use crate :: sys:: stdio:: panic_output;
23- use crate :: sys_common:: backtrace;
2424use crate :: thread;
2525
2626#[ cfg( not( test) ) ]
@@ -655,7 +655,7 @@ pub fn begin_panic_handler(info: &core::panic::PanicInfo<'_>) -> ! {
655655
656656let loc = info. location ( ) . unwrap ( ) ; // The current implementation always returns Some
657657let msg = info. message ( ) ;
658- crate :: sys_common :: backtrace:: __rust_end_short_backtrace ( move ||{
658+ crate :: sys :: backtrace:: __rust_end_short_backtrace ( move ||{
659659if let Some ( s) = msg. as_str ( ) {
660660rust_panic_with_hook (
661661& mut StaticStrPayload ( s) ,
@@ -727,7 +727,7 @@ pub const fn begin_panic<M: Any + Send>(msg: M) -> ! {
727727}
728728
729729let loc =Location :: caller ( ) ;
730- crate :: sys_common :: backtrace:: __rust_end_short_backtrace ( move ||{
730+ crate :: sys :: backtrace:: __rust_end_short_backtrace ( move ||{
731731rust_panic_with_hook (
732732& mut Payload { inner : Some ( msg) } ,
733733 loc,