mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 19:47:38 +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"),
|
rustc_interface::util::version_str().unwrap_or("unknown version"),
|
||||||
cranelift_codegen::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() {
|
let (name, file_info) = match tcx.sess.local_crate_source_file.clone() {
|
||||||
Some(path) => {
|
Some(path) => {
|
||||||
let name = path.to_string_lossy().into_owned();
|
let name = path.to_string_lossy().into_owned();
|
||||||
|
Loading…
Reference in New Issue
Block a user