]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/free_region.rs
On-demandify region mapping
[rust.git] / src / librustc / middle / free_region.rs
index 2bfa8dec0bfc78a48bc75582108836fbde00c010..f622dfc683b60b34e0c596c12da94e755069b075 100644 (file)
@@ -136,10 +136,10 @@ pub fn is_subregion_of(&self,
                     true,
 
                 (&ty::ReScope(sub_scope), &ty::ReScope(super_scope)) =>
-                    tcx.region_maps.is_subscope_of(sub_scope, super_scope),
+                    tcx.region_maps().is_subscope_of(sub_scope, super_scope),
 
                 (&ty::ReScope(sub_scope), &ty::ReFree(fr)) =>
-                    tcx.region_maps.is_subscope_of(sub_scope, fr.scope) ||
+                    tcx.region_maps().is_subscope_of(sub_scope, fr.scope) ||
                     self.is_static(fr),
 
                 (&ty::ReFree(sub_fr), &ty::ReFree(super_fr)) =>