Skip to content

Commit 92715b5

Browse files
committed
Prefetch effective_visibilities
1 parent 1ecb315 commit 92715b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_interface/src/passes.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,8 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
800800
sess.time("misc_checking_2", || {
801801
parallel!(
802802
{
803-
tcx.ensure().effective_visibilities(());
803+
// Prefetch this as it is used later by lint checking and privacy checking.
804+
tcx.ensure_with_value().effective_visibilities(());
804805
},
805806
{
806807
sess.time("MIR_borrow_checking", || {

0 commit comments

Comments
 (0)