diff options
| author | Andy Wang <qian.wang19@imperial.ac.uk> | 2021-04-10 13:48:06 +0100 |
|---|---|---|
| committer | Andy Wang <cbeuw.andy@gmail.com> | 2021-05-05 15:10:57 +0100 |
| commit | ac5272b3c7cd929b2144cfc244271e6e3d1d64ee (patch) | |
| tree | 261801600ce10ea9e2ca1eaee99a6c084211ddac /src/debuginfo | |
| parent | 0a1b87c9ce295030a373cc4e37cac7e89294903f (diff) | |
| download | rust-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.rs | 2 |
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(); |
