about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-19 05:23:40 +0000
committerbors <bors@rust-lang.org>2023-01-19 05:23:40 +0000
commit739938d7a8981e0b2852d5560b7da51eab66b452 (patch)
treeeddefd08a7c5a21aa2d087bd6da0163a81b5ade6
parent49a9438681639ad9ca30bc2f69a4fd231cd35e09 (diff)
parent08c7230989ff02471aeaf93aa4325a8ef6e9c30d (diff)
downloadrust-739938d7a8981e0b2852d5560b7da51eab66b452.tar.gz
rust-739938d7a8981e0b2852d5560b7da51eab66b452.zip
Auto merge of #106810 - oli-obk:resolver_reverse_plumbing, r=petrochenkov
Various cleanups around pre-TyCtxt queries and functions

part of #105462

based on https://github.com/rust-lang/rust/pull/106776 (everything starting at [0e2b39f](https://github.com/rust-lang/rust/pull/106810/commits/0e2b39fd1ffde51b50d45ccbe41de52b85136b8b) is new in this PR)

r? `@petrochenkov`

I think this should be most of the uncontroversial part of #105462.
-rw-r--r--src/debuginfo/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debuginfo/mod.rs b/src/debuginfo/mod.rs
index 2ba012a77b0..28fbcb15b2b 100644
--- a/src/debuginfo/mod.rs
+++ b/src/debuginfo/mod.rs
@@ -68,7 +68,7 @@ impl DebugContext {
             .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)