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 | 04079190835c04e8c671daef492144dfe06564ab (patch) | |
| tree | eb1ae6913927e715446fdfd90a6d5de0062d8319 /compiler/rustc_codegen_cranelift/src | |
| parent | 9e0426d7842c4a603237789b59e6c491d2dd3b4a (diff) | |
| download | rust-04079190835c04e8c671daef492144dfe06564ab.tar.gz rust-04079190835c04e8c671daef492144dfe06564ab.zip | |
Use RealFileName for Session::working_dir as it may also be remapped
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs b/compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs index dc8bc8d9cb7..10d3651789b 100644 --- a/compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs +++ b/compiler/rustc_codegen_cranelift/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(); |
