about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-03-19 13:51:22 +0100
committerUrgau <urgau@numericable.fr>2024-03-28 18:47:26 +0100
commit5de668acb07218424cbfe79f32f4961ca773570d (patch)
treee5e02c1b0d937561f5e4c4cca04f8ee864a6fde4 /src
parentc5c31447a7f2d8ffc03f058e3d39cff7627d3eb1 (diff)
downloadrust-5de668acb07218424cbfe79f32f4961ca773570d.tar.gz
rust-5de668acb07218424cbfe79f32f4961ca773570d.zip
Replace `RemapFileNameExt::for_codegen` with explicit calls
Diffstat (limited to 'src')
-rw-r--r--src/debuginfo/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debuginfo/mod.rs b/src/debuginfo/mod.rs
index 1bb0e590513..c9f59ae9f29 100644
--- a/src/debuginfo/mod.rs
+++ b/src/debuginfo/mod.rs
@@ -84,7 +84,9 @@ impl DebugContext {
 
         let mut dwarf = DwarfUnit::new(encoding);
 
-        let should_remap_filepaths = tcx.sess.should_prefer_remapped_for_codegen();
+        use rustc_session::config::RemapPathScopeComponents;
+        let should_remap_filepaths =
+            tcx.sess.should_prefer_remapped(RemapPathScopeComponents::DEBUGINFO);
 
         let producer = producer(tcx.sess);
         let comp_dir = tcx