]> git.lizzy.rs Git - rust.git/commitdiff
Move compiler input and ouput paths into session
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 7 Dec 2022 09:24:00 +0000 (09:24 +0000)
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 16 Jan 2023 14:46:44 +0000 (14:46 +0000)
src/debuginfo/mod.rs

index 2ba012a77b0a908788f0272705f82f7c875cb1a7..28fbcb15b2b5893ab9ea6912d5047a05a6f293a7 100644 (file)
@@ -68,7 +68,7 @@ pub(crate) fn new(tcx: TyCtxt<'_>, isa: &dyn TargetIsa) -> Self {
             .working_dir
             .to_string_lossy(FileNameDisplayPreference::Remapped)
             .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() {
             Some(path) => {
                 let name = path.to_string_lossy().into_owned();
                 (name, None)