Skip to content

Commit bbdc613

Browse files
committed
Ensure typeck_tables_of from typck_item_bodies
This should make TypeckTables lazier.
1 parent 67b3e7c commit bbdc613

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ fn typeck_item_bodies<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, crate_num: CrateNum
728728
debug_assert!(crate_num == LOCAL_CRATE);
729729
Ok(tcx.sess.track_errors(|| {
730730
for body_owner_def_id in tcx.body_owners() {
731-
tcx.typeck_tables_of(body_owner_def_id);
731+
ty::maps::queries::typeck_tables_of::ensure(tcx, body_owner_def_id);
732732
}
733733
})?)
734734
}

0 commit comments

Comments
 (0)