Update compiler/rustc_interface/src/passes.rs

Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
This commit is contained in:
Camille Gillot 2025-06-19 13:18:33 +02:00 committed by GitHub
parent 7fa94af556
commit ede48910fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1010,7 +1010,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`.
// to use `hir_crate_items`.
tcx.ensure_done().hir_crate_items(());
let sess = tcx.sess;