about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJimmy Brisson <theotherjimmy@gmail.com>2017-10-10 22:55:23 -0500
committerJimmy Brisson <theotherjimmy@gmail.com>2017-10-11 22:08:29 -0500
commitbbdc61313df2c54c08cddcfde803cc2b40aa2ba3 (patch)
tree6b3f5c017102aa5b2ba6cf18cc05a9b8e4bc2f3b /src
parent67b3e7cc435931330cae5ae104ec7a7d37df89dd (diff)
downloadrust-bbdc61313df2c54c08cddcfde803cc2b40aa2ba3.tar.gz
rust-bbdc61313df2c54c08cddcfde803cc2b40aa2ba3.zip
Ensure typeck_tables_of from typck_item_bodies
This should make TypeckTables lazier.
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/check/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs
index 9c6a4abfbd7..02a41aefd13 100644
--- a/src/librustc_typeck/check/mod.rs
+++ b/src/librustc_typeck/check/mod.rs
@@ -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);
         }
     })?)
 }