fn ast_ty_arg_to_ty(&self,
                        rscope: &RegionScope,
                        def: Option<&ty::TypeParameterDef<'tcx>>,
                        region_substs: &[Kind<'tcx>],
                        ast_ty: &hir::Ty)
                        -> Ty<'tcx>
    {
        let tcx = self.tcx();

        if let Some(def) = def {
            let object_lifetime_default = def.object_lifetime_default.subst(tcx, region_substs);
            let rscope1 = &ObjectLifetimeDefaultRscope::new(rscope, object_lifetime_default);
            self.ast_ty_to_ty(rscope1, ast_ty)
        } else {
            self.ast_ty_to_ty(rscope, ast_ty)
        }
    }
/// Convert a type supplied as value for a type argument from AST into our
/// our internal representation. This is the same as `ast_ty_to_ty` but that
/// it applies the object lifetime default.
///
/// # Parameters
///
/// * `this`, `rscope`: the surrounding context
/// * `def`: the type parameter being instantiated (if available)
/// * `region_substs`: a partial substitution consisting of
///   only the region type parameters being supplied to this type.
/// * `ast_ty`: the ast representation of the type being supplied
Convert a type supplied as value for a type argument from AST into our
our internal representation. This is the same as `ast_ty_to_ty` but that
it applies the object lifetime default.
Convert a type supplied as value for a type argument from AST into our our internal representation . This is the same as ` ast_ty_to_ty ` but that it applies the object lifetime default .
fn ast_ty_arg_to_ty(&self,
                        rscope: &RegionScope,
                        def: Option<&ty::TypeParameterDef<'tcx>>,
                        region_substs: &[Kind<'tcx>],
                        ast_ty: &hir::Ty)
                        -> Ty<'tcx>
    {
        let tcx = self.tcx();
        if let Some(def) = def {
            let object_lifetime_default = def.object_lifetime_default.subst(tcx, region_substs);
            let rscope1 = &ObjectLifetimeDefaultRscope::new(rscope, object_lifetime_default);
            self.ast_ty_to_ty(rscope1, ast_ty)
        } else {
            self.ast_ty_to_ty(rscope, ast_ty)
        }
    }
fn ast_ty_arg_to_ty ( & self , rscope : & RegionScope , def : Option < & ty :: TypeParameterDef < ' tcx > > , region_substs : & [ Kind < ' tcx > ] , ast_ty : & hir :: Ty ) -> Ty < ' tcx > { let tcx = self . tcx ( ) ; if let Some ( def ) = def { let object_lifetime_default = def . object_lifetime_default . subst ( tcx , region_substs ) ; let rscope1 = & ObjectLifetimeDefaultRscope :: new ( rscope , object_lifetime_default ) ; self . ast_ty_to_ty ( rscope1 , ast_ty ) } else { self . ast_ty_to_ty ( rscope , ast_ty ) } }
Convert a type supplied as value for a type argument from AST into our
our internal representation.
Convert a type supplied as value for a type argument from AST into our our internal representation .
&self
rscope
&RegionScope
def
Option<&ty::TypeParameterDef<'tcx>>
region_substs
&[Kind<'tcx>]
ast_ty
&hir::Ty