about summary refs log tree commit diff
path: root/src/debuginfo
diff options
context:
space:
mode:
authorAndy Wang <qian.wang19@imperial.ac.uk>2021-04-10 13:48:06 +0100
committerAndy Wang <cbeuw.andy@gmail.com>2021-05-05 15:10:57 +0100
commitac5272b3c7cd929b2144cfc244271e6e3d1d64ee (patch)
tree261801600ce10ea9e2ca1eaee99a6c084211ddac /src/debuginfo
parent0a1b87c9ce295030a373cc4e37cac7e89294903f (diff)
downloadrust-ac5272b3c7cd929b2144cfc244271e6e3d1d64ee.tar.gz
rust-ac5272b3c7cd929b2144cfc244271e6e3d1d64ee.zip
Use RealFileName for Session::working_dir as it may also be remapped
Diffstat (limited to 'src/debuginfo')
-rw-r--r--src/debuginfo/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debuginfo/mod.rs b/src/debuginfo/mod.rs
index dc8bc8d9cb7..10d3651789b 100644
--- a/src/debuginfo/mod.rs
+++ b/src/debuginfo/mod.rs
@@ -64,7 +64,7 @@ impl<'tcx> DebugContext<'tcx> {
         // FIXME: how to get version when building out of tree?
         // Normally this would use option_env!("CFG_VERSION").
         let producer = format!("cg_clif (rustc {})", "unknown version");
-        let comp_dir = tcx.sess.working_dir.0.to_string_lossy().into_owned();
+        let comp_dir = tcx.sess.working_dir.stable_name().to_string_lossy().into_owned();
         let (name, file_info) = match tcx.sess.local_crate_source_file.clone() {
             Some(path) => {
                 let name = path.to_string_lossy().into_owned();