From bf0766ada1a43c58f844f951ae2319185f3e2ceb Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Thu, 6 Nov 2014 09:20:16 +0200 Subject: [PATCH] rustdoc: fix fallout of ty::t -> Ty<'tcx>. --- src/librustdoc/clean/mod.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 22b646e9ffe5b..209d8c7ca0f29 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -478,7 +478,7 @@ impl Clean for ast::TyParam { } } -impl Clean for ty::TypeParameterDef { +impl<'tcx> Clean for ty::TypeParameterDef<'tcx> { fn clean(&self, cx: &DocContext) -> TyParam { cx.external_typarams.borrow_mut().as_mut().unwrap() .insert(self.def_id, self.name.clean(cx)); @@ -567,7 +567,7 @@ impl Clean for ty::BuiltinBound { } } -impl Clean for ty::TraitRef { +impl<'tcx> Clean for ty::TraitRef<'tcx> { fn clean(&self, cx: &DocContext) -> TyParamBound { let tcx = match cx.tcx_opt() { Some(tcx) => tcx, @@ -588,7 +588,7 @@ impl Clean for ty::TraitRef { } } -impl Clean> for ty::ParamBounds { +impl<'tcx> Clean> for ty::ParamBounds<'tcx> { fn clean(&self, cx: &DocContext) -> Vec { let mut v = Vec::new(); for b in self.builtin_bounds.iter() { @@ -606,7 +606,7 @@ impl Clean> for ty::ParamBounds { } } -impl Clean>> for subst::Substs { +impl<'tcx> Clean>> for subst::Substs<'tcx> { fn clean(&self, cx: &DocContext) -> Option> { let mut v = Vec::new(); v.extend(self.regions().iter().filter_map(|r| r.clean(cx)).map(RegionBound)); @@ -698,7 +698,7 @@ impl Clean for ast::Generics { } } -impl<'a> Clean for (&'a ty::Generics, subst::ParamSpace) { +impl<'a, 'tcx> Clean for (&'a ty::Generics<'tcx>, subst::ParamSpace) { fn clean(&self, cx: &DocContext) -> Generics { let (me, space) = *self; Generics { @@ -877,7 +877,7 @@ impl Clean for ast::FnDecl { } } -impl<'a> Clean for ty::FnOutput { +impl<'tcx> Clean for ty::FnOutput<'tcx> { fn clean(&self, cx: &DocContext) -> Type { match *self { ty::FnConverging(ty) => ty.clean(cx), @@ -886,7 +886,7 @@ impl<'a> Clean for ty::FnOutput { } } -impl<'a> Clean for (ast::DefId, &'a ty::FnSig) { +impl<'a, 'tcx> Clean for (ast::DefId, &'a ty::FnSig<'tcx>) { fn clean(&self, cx: &DocContext) -> FnDecl { let (did, sig) = *self; let mut names = if did.node != 0 { @@ -1036,7 +1036,7 @@ impl Clean for ast::ImplItem { } } -impl Clean for ty::Method { +impl<'tcx> Clean for ty::Method<'tcx> { fn clean(&self, cx: &DocContext) -> Item { let (self_, sig) = match self.explicit_self { ty::StaticExplicitSelfCategory => (ast::SelfStatic.clean(cx), @@ -1082,7 +1082,7 @@ impl Clean for ty::Method { } } -impl Clean for ty::ImplOrTraitItem { +impl<'tcx> Clean for ty::ImplOrTraitItem<'tcx> { fn clean(&self, cx: &DocContext) -> Item { match *self { ty::MethodTraitItem(ref mti) => mti.clean(cx), @@ -1257,7 +1257,7 @@ impl Clean for ast::Ty { } } -impl Clean for Ty { +impl<'tcx> Clean for ty::Ty<'tcx> { fn clean(&self, cx: &DocContext) -> Type { match self.sty { ty::ty_bool => Primitive(Bool), @@ -1506,7 +1506,7 @@ impl Clean for doctree::Variant { } } -impl Clean for ty::VariantInfo { +impl<'tcx> Clean for ty::VariantInfo<'tcx> { fn clean(&self, cx: &DocContext) -> Item { // use syntax::parse::token::special_idents::unnamed_field; let kind = match self.arg_names.as_ref().map(|s| s.as_slice()) { @@ -2255,7 +2255,7 @@ impl Clean for ast::Typedef { } fn lang_struct(cx: &DocContext, did: Option, - t: Ty, name: &str, + t: ty::Ty, name: &str, fallback: fn(Box) -> Type) -> Type { let did = match did { Some(did) => did,