Skip to content

Commit 179fd38

Browse files
committed
Update rustc_codegen_cratelift for working_dir change
1 parent a895069 commit 179fd38

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_cranelift/src/debuginfo

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<'tcx> DebugContext<'tcx> {
6666
rustc_interface::util::version_str().unwrap_or("unknown version"),
6767
cranelift_codegen::VERSION,
6868
);
69-
let comp_dir = tcx.sess.working_dir.to_string_lossy(false).into_owned();
69+
let comp_dir = tcx.sess.opts.working_dir.to_string_lossy(false).into_owned();
7070
let (name, file_info) = match tcx.sess.local_crate_source_file.clone() {
7171
Some(path) => {
7272
let name = path.to_string_lossy().into_owned();

0 commit comments

Comments
 (0)