Skip to content

Commit 4332e35

Browse files
committed
Prefetch lint_levels and visible_parent_map
1 parent bfa09ed commit 4332e35

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustc_interface/passes.rs

+8
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,14 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
793793
tcx.ensure().check_mod_const_bodies(local_def_id);
794794
});
795795
},
796+
{
797+
// Prefetch in case lints are emitted.
798+
tcx.lint_levels(LOCAL_CRATE);
799+
},
800+
{
801+
// Prefetch in case something needs printing.
802+
tcx.visible_parent_map(LOCAL_CRATE);
803+
},
796804
{
797805
tcx.stability_index(LOCAL_CRATE);
798806

0 commit comments

Comments
 (0)