]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/interpret/intrinsics/caller_location.rs
Rollup merge of #85174 - GuillaumeGomez:doc-code-block-border-radius, r=jsha
[rust.git] / compiler / rustc_mir / src / interpret / intrinsics / caller_location.rs
index 4dfdc08b875c04fee49a5dbf11e9a1d414d3b849..2b996cf62a3d39166877d449973c9cf7399ad09c 100644 (file)
@@ -106,7 +106,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
         let topmost = span.ctxt().outer_expn().expansion_cause().unwrap_or(span);
         let caller = self.tcx.sess.source_map().lookup_char_pos(topmost.lo());
         (
-            Symbol::intern(&caller.file.name.to_string()),
+            Symbol::intern(&caller.file.name.prefer_remapped().to_string_lossy()),
             u32::try_from(caller.line).unwrap(),
             u32::try_from(caller.col_display).unwrap().checked_add(1).unwrap(),
         )