Ensure typeck_tables_of from typck_item_bodies
This should make TypeckTables lazier.
This commit is contained in:
parent
67b3e7cc43
commit
bbdc61313d
1 changed files with 1 additions and 1 deletions
|
|
@ -728,7 +728,7 @@ fn typeck_item_bodies<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, crate_num: CrateNum
|
|||
debug_assert!(crate_num == LOCAL_CRATE);
|
||||
Ok(tcx.sess.track_errors(|| {
|
||||
for body_owner_def_id in tcx.body_owners() {
|
||||
tcx.typeck_tables_of(body_owner_def_id);
|
||||
ty::maps::queries::typeck_tables_of::ensure(tcx, body_owner_def_id);
|
||||
}
|
||||
})?)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue