Skip to content

Commit 08c7230

Browse files
committed
Move compiler input and ouput paths into session
1 parent 4e47bd0 commit 08c7230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debuginfo/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl DebugContext {
6868
.working_dir
6969
.to_string_lossy(FileNameDisplayPreference::Remapped)
7070
.into_owned();
71-
let (name, file_info) = match tcx.sess.local_crate_source_file.clone() {
71+
let (name, file_info) = match tcx.sess.local_crate_source_file() {
7272
Some(path) => {
7373
let name = path.to_string_lossy().into_owned();
7474
(name, None)

0 commit comments

Comments
 (0)