pub fn free_extent<'a, 'gcx>(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>, fr: &ty::FreeRegion)
                                 -> CodeExtent {
        let param_owner = match fr.bound_region {
            ty::BoundRegion::BrNamed(def_id, _) => {
                tcx.parent_def_id(def_id).unwrap()
            }
            _ => fr.scope
        };

        // Ensure that the named late-bound lifetimes were defined
        // on the same function that they ended up being freed in.
        assert_eq!(param_owner, fr.scope);

        let param_owner_id = tcx.hir.as_local_node_id(param_owner).unwrap();
        CodeExtent::CallSiteScope(tcx.hir.body_owned_by(param_owner_id))
    }
/// Assuming that the provided region was defined within this `RegionMaps`,
/// returns the outermost `CodeExtent` that the region outlives.
Assuming that the provided region was defined within this `RegionMaps`,
returns the outermost `CodeExtent` that the region outlives.
Assuming that the provided region was defined within this ` RegionMaps ` returns the outermost ` CodeExtent ` that the region outlives .
pub fn free_extent<'a, 'gcx>(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>, fr: &ty::FreeRegion)
                                 -> CodeExtent {
        let param_owner = match fr.bound_region {
            ty::BoundRegion::BrNamed(def_id, _) => {
                tcx.parent_def_id(def_id).unwrap()
            }
            _ => fr.scope
        };
        // Ensure that the named late-bound lifetimes were defined
        // on the same function that they ended up being freed in.
        assert_eq!(param_owner, fr.scope);
        let param_owner_id = tcx.hir.as_local_node_id(param_owner).unwrap();
        CodeExtent::CallSiteScope(tcx.hir.body_owned_by(param_owner_id))
    }
pub fn free_extent < ' a , ' gcx > ( & self , tcx : TyCtxt < ' a , ' gcx , ' tcx > , fr : & ty :: FreeRegion ) -> CodeExtent { let param_owner = match fr . bound_region { ty :: BoundRegion :: BrNamed ( def_id , _ ) => { tcx . parent_def_id ( def_id ) . unwrap ( ) } _ => fr . scope } ; // Ensure that the named late-bound lifetimes were defined // on the same function that they ended up being freed in. assert_eq ! ( param_owner fr scope ) ; let param_owner_id = tcx . hir . as_local_node_id ( param_owner ) . unwrap ( ) ; CodeExtent :: CallSiteScope ( tcx . hir . body_owned_by ( param_owner_id ) ) }
Assuming that the provided region was defined within this `RegionMaps`,
returns the outermost `CodeExtent` that the region outlives.
Assuming that the provided region was defined within this ` RegionMaps ` returns the outermost ` CodeExtent ` that the region outlives .
&self
tcx
TyCtxt<'a, 'gcx, 'tcx>
fr
&ty::FreeRegion
&self
tcx
TyCtxt<'a, 'gcx, 'tcx>
fr
&ty::FreeRegion