about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-12-05 16:19:14 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-01-12 17:14:17 +0000
commit408ae0fcb9d154691470ce8fc644394c20a97405 (patch)
tree41336e8ac93d8c1e58e620feab82a8ce7b3c6daf /compiler/rustc_interface/src
parent222d1ff68d5bfe1dc2d7f3f0c42811fe12964af9 (diff)
downloadrust-408ae0fcb9d154691470ce8fc644394c20a97405.tar.gz
rust-408ae0fcb9d154691470ce8fc644394c20a97405.zip
Feed `resolutions` query instead of it being a thin wrapper around an untracked field
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 86d56385bc9..e8656e0dbc2 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -817,7 +817,6 @@ pub fn create_global_ctxt<'tcx>(
                 lint_store,
                 arena,
                 hir_arena,
-                untracked_resolutions,
                 untracked,
                 krate,
                 dep_graph,
@@ -832,8 +831,9 @@ pub fn create_global_ctxt<'tcx>(
 
     let mut qcx = QueryContext { gcx };
     qcx.enter(|tcx| {
-        tcx.feed_unit_query()
-            .resolver_for_lowering(tcx.arena.alloc(Steal::new(untracked_resolver_for_lowering)))
+        let feed = tcx.feed_unit_query();
+        feed.resolver_for_lowering(tcx.arena.alloc(Steal::new(untracked_resolver_for_lowering)));
+        feed.resolutions(tcx.arena.alloc(untracked_resolutions));
     });
     qcx
 }