File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ impl<'tcx> DebugContext<'tcx> {
66
66
rustc_interface:: util:: version_str( ) . unwrap_or( "unknown version" ) ,
67
67
cranelift_codegen:: VERSION ,
68
68
) ;
69
- let comp_dir = tcx. sess . opts . working_dir . to_string_lossy ( false ) . into_owned ( ) ;
69
+ let comp_dir = tcx. sess . opts . working_dir . to_string_lossy ( FileNameDisplayPreference :: Remapped ) . into_owned ( ) ;
70
70
let ( name, file_info) = match tcx. sess . local_crate_source_file . clone ( ) {
71
71
Some ( path) => {
72
72
let name = path. to_string_lossy ( ) . into_owned ( ) ;
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ mod vtable;
74
74
mod prelude {
75
75
pub ( crate ) use std:: convert:: { TryFrom , TryInto } ;
76
76
77
- pub ( crate ) use rustc_span:: Span ;
77
+ pub ( crate ) use rustc_span:: { Span , FileNameDisplayPreference } ;
78
78
79
79
pub ( crate ) use rustc_hir:: def_id:: { DefId , LOCAL_CRATE } ;
80
80
pub ( crate ) use rustc_middle:: bug;
You can’t perform that action at this time.
0 commit comments