]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/interpret/eval_context.rs
Rollup merge of #85174 - GuillaumeGomez:doc-code-block-border-radius, r=jsha
[rust.git] / compiler / rustc_mir / src / interpret / eval_context.rs
index 18d4d71e517ea36af7afd1adcb8402ef09e0f7fd..e9dd7a3fe68f1cbfbee51a981154a9c50c86a379 100644 (file)
@@ -263,7 +263,13 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
             }
             if !self.span.is_dummy() {
                 let lo = tcx.sess.source_map().lookup_char_pos(self.span.lo());
-                write!(f, " at {}:{}:{}", lo.file.name, lo.line, lo.col.to_usize() + 1)?;
+                write!(
+                    f,
+                    " at {}:{}:{}",
+                    lo.file.name.prefer_local(),
+                    lo.line,
+                    lo.col.to_usize() + 1
+                )?;
             }
             Ok(())
         })
@@ -524,6 +530,7 @@ pub(super) fn resolve(
         }
     }
 
+    #[inline(always)]
     pub fn layout_of_local(
         &self,
         frame: &Frame<'mir, 'tcx, M::PointerTag, M::FrameExtra>,