about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-13 13:57:21 +0000
committerbors <bors@rust-lang.org>2023-01-13 13:57:21 +0000
commit0b90256ada21c6a81b4c18f2c7a23151ab5fc232 (patch)
treeef066e14c07cd48aa364b2e7ab2853a40e2d162a /compiler/rustc_ast_lowering/src/lib.rs
parent5ca6f7d2c34953ee360ccf7d3c84c7853ea2df4b (diff)
parentd36db0d2a0c4fa0adaf49b2e795670bfc235d390 (diff)
downloadrust-0b90256ada21c6a81b4c18f2c7a23151ab5fc232.tar.gz
rust-0b90256ada21c6a81b4c18f2c7a23151ab5fc232.zip
Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillot
Feed a bunch of queries instead of tracking fields on TyCtxt

r? `@cjgillot`

pulled out of https://github.com/rust-lang/rust/pull/105462
Diffstat (limited to 'compiler/rustc_ast_lowering/src/lib.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs
index 2e135aafb1e..41d4a5679f1 100644
--- a/compiler/rustc_ast_lowering/src/lib.rs
+++ b/compiler/rustc_ast_lowering/src/lib.rs
@@ -416,8 +416,7 @@ fn compute_hir_hash(
 
 pub fn lower_to_hir(tcx: TyCtxt<'_>, (): ()) -> hir::Crate<'_> {
     let sess = tcx.sess;
-    let krate = tcx.untracked_crate.steal();
-    let mut resolver = tcx.resolver_for_lowering(()).steal();
+    let (mut resolver, krate) = tcx.resolver_for_lowering(()).steal();
 
     let ast_index = index_crate(&resolver.node_id_to_def_id, &krate);
     let mut owners = IndexVec::from_fn_n(