about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/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
commit106146fd958c3c0d3428cfc7be1f75c5bc81698f (patch)
tree97123f1a2ac2f788d59981dfc5856e2c71de2f2a /compiler/rustc_codegen_cranelift/src
parent777c6b46cc804a3bae345f9133d2e0a900026bdc (diff)
downloadrust-106146fd958c3c0d3428cfc7be1f75c5bc81698f.tar.gz
rust-106146fd958c3c0d3428cfc7be1f75c5bc81698f.zip
Replace `RemapFileNameExt::for_codegen` with explicit calls
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
-rw-r--r--compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs b/compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs
index 1bb0e590513..c9f59ae9f29 100644
--- a/compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs
+++ b/compiler/rustc_codegen_cranelift/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