Reduce uses of hir_crate.

This commit is contained in:
Camille GILLOT
2025-06-18 15:14:48 +00:00
parent 75e7cf5f85
commit c6e77b3ba6
10 changed files with 27 additions and 34 deletions

View File

@@ -1011,7 +1011,7 @@ 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(());
tcx.ensure_done().hir_crate_items(());
let sess = tcx.sess;
sess.time("misc_checking_1", || {