mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 11:37:39 +00:00
Update rustc_codegen_cratelift for working_dir change
This commit is contained in:
parent
a895069c50
commit
179fd38bb5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user