]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/mod.rs
On-demandify region mapping
[rust.git] / src / librustc_typeck / check / mod.rs
index 8752f82f7abf2eef7f2b9eb66f20e1fefdce8926..e40d8f6cafca324a4637f66812ffecdd11485567 100644 (file)
@@ -781,7 +781,7 @@ fn typeck_tables_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
             check_abi(tcx, span, fn_sig.abi());
 
             // Compute the fty from point of view of inside fn.
-            let fn_scope = inh.tcx.region_maps.call_site_extent(id, body_id.node_id);
+            let fn_scope = inh.tcx.region_maps().call_site_extent(id, body_id.node_id);
             let fn_sig =
                 fn_sig.subst(inh.tcx, &inh.parameter_environment.free_substs);
             let fn_sig =