We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e47bd0 commit 08c7230Copy full SHA for 08c7230
src/debuginfo/mod.rs
@@ -68,7 +68,7 @@ impl DebugContext {
68
.working_dir
69
.to_string_lossy(FileNameDisplayPreference::Remapped)
70
.into_owned();
71
- let (name, file_info) = match tcx.sess.local_crate_source_file.clone() {
+ let (name, file_info) = match tcx.sess.local_crate_source_file() {
72
Some(path) => {
73
let name = path.to_string_lossy().into_owned();
74
(name, None)
0 commit comments