]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_save_analysis/src/span_utils.rs
Use RealFileName for Session::working_dir as it may also be remapped
[rust.git] / compiler / rustc_save_analysis / src / span_utils.rs
index 5e16a427f3fa3b9df4d1363ecf7894201de9419b..bcda3a6d006f1f65f279cad6462b5badd027160d 100644 (file)
@@ -26,7 +26,7 @@ pub fn make_filename_string(&self, file: &SourceFile) -> String {
                         .display()
                         .to_string()
                 } else {
-                    self.sess.working_dir.0.join(&path).display().to_string()
+                    self.sess.working_dir.stable_name().join(&path).display().to_string()
                 }
             }
             // If the file name was remapped, we assume the user