Skip to content

Commit 133190b

Browse files
committed
Prefetch lint_levels and visible_parent_map
1 parent 171b1bb commit 133190b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustc_interface/passes.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,14 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
796796
tcx.ensure().check_mod_const_bodies(local_def_id);
797797
});
798798
},
799+
{
800+
// Prefetch in case lints are emitted.
801+
tcx.lint_levels(LOCAL_CRATE);
802+
},
803+
{
804+
// Prefetch in case something needs printing.
805+
tcx.visible_parent_map(LOCAL_CRATE);
806+
},
799807
{
800808
tcx.stability_index(LOCAL_CRATE);
801809

0 commit comments

Comments
 (0)