Skip to content

Commit 5de668a

Browse files
committed
Replace RemapFileNameExt::for_codegen with explicit calls
1 parent c5c3144 commit 5de668a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/debuginfo/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ impl DebugContext {
8484

8585
let mut dwarf = DwarfUnit::new(encoding);
8686

87-
let should_remap_filepaths = tcx.sess.should_prefer_remapped_for_codegen();
87+
use rustc_session::config::RemapPathScopeComponents;
88+
let should_remap_filepaths =
89+
tcx.sess.should_prefer_remapped(RemapPathScopeComponents::DEBUGINFO);
8890

8991
let producer = producer(tcx.sess);
9092
let comp_dir = tcx

0 commit comments

Comments
 (0)