Update rustc_codegen_cratelift for working_dir change

This commit is contained in:
Aaron Hill 2021-08-12 16:46:58 -05:00
parent a895069c50
commit 179fd38bb5
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -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();