about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/passes.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-06-20 02:50:40 -0400
committerGitHub <noreply@github.com>2025-06-20 02:50:40 -0400
commitdd41c06e27df4f1e80f236d4c4bd47606773468d (patch)
tree730ea605dca9b22eeaaf8fc5871ea2fa25e4f48d /compiler/rustc_interface/src/passes.rs
parent52758b7329d436979f8bd8a36d1ca4c476a663fd (diff)
parentede48910fdb8956f4a23a3bb29ded754206a3ef2 (diff)
downloadrust-dd41c06e27df4f1e80f236d4c4bd47606773468d.tar.gz
rust-dd41c06e27df4f1e80f236d4c4bd47606773468d.zip
Rollup merge of #142687 - cjgillot:less-hir_crate, r=oli-obk
Reduce uses of `hir_crate`.

I tried rebasing my old incremental-HIR branch. This is a by-product, which is required if we want to get rid of `hir_crate` entirely.

The second commit is a drive-by cleanup. It can be pulled into its own PR.

r? ````@oli-obk````
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
-rw-r--r--compiler/rustc_interface/src/passes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 02d1ebdb31a..70ae9147fb1 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -1011,8 +1011,8 @@ fn run_required_analyses(tcx: TyCtxt<'_>) {
 
     // Prefetch this to prevent multiple threads from blocking on it later.
     // This is needed since the `hir_id_validator::check_crate` call above is not guaranteed
-    // to use `hir_crate`.
-    tcx.ensure_done().hir_crate(());
+    // to use `hir_crate_items`.
+    tcx.ensure_done().hir_crate_items(());
 
     let sess = tcx.sess;
     sess.time("misc_checking_1", || {