about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2021-08-12 16:46:58 -0500
committerAaron Hill <aa1ronham@gmail.com>2021-08-15 15:17:37 -0500
commit179fd38bb593896a8c1cb15bd50faebecd9f601a (patch)
tree5bfd8c33f9b23c3e12079877ad6a63cf89ab230a
parenta895069c5023a82e9316d21854a81172c69d1418 (diff)
downloadrust-179fd38bb593896a8c1cb15bd50faebecd9f601a.tar.gz
rust-179fd38bb593896a8c1cb15bd50faebecd9f601a.zip
Update rustc_codegen_cratelift for working_dir change
-rw-r--r--compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs2
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 ceef65d5478..c471da83de2 100644
--- a/compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs
+++ b/compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs
@@ -66,7 +66,7 @@ impl<'tcx> DebugContext<'tcx> {
             rustc_interface::util::version_str().unwrap_or("unknown version"),
             cranelift_codegen::VERSION,
         );
-        let comp_dir = tcx.sess.working_dir.to_string_lossy(false).into_owned();
+        let comp_dir = tcx.sess.opts.working_dir.to_string_lossy(false).into_owned();
         let (name, file_info) = match tcx.sess.local_crate_source_file.clone() {
             Some(path) => {
                 let name = path.to_string_lossy().into_owned();