@@ -460,7 +460,7 @@ impl Clean<TyParam> for ast::TyParam {
460
460
}
461
461
}
462
462
463
- impl Clean < TyParam > for ty:: TypeParameterDef {
463
+ impl < ' tcx > Clean < TyParam > for ty:: TypeParameterDef < ' tcx > {
464
464
fn clean ( & self , cx : & DocContext ) -> TyParam {
465
465
cx. external_typarams . borrow_mut ( ) . as_mut ( ) . unwrap ( )
466
466
. insert ( self . def_id , self . name . clean ( cx) ) ;
@@ -551,7 +551,7 @@ impl Clean<TyParamBound> for ty::BuiltinBound {
551
551
}
552
552
}
553
553
554
- impl Clean < TyParamBound > for ty:: TraitRef {
554
+ impl < ' tcx > Clean < TyParamBound > for ty:: TraitRef < ' tcx > {
555
555
fn clean ( & self , cx : & DocContext ) -> TyParamBound {
556
556
let tcx = match cx. tcx_opt ( ) {
557
557
Some ( tcx) => tcx,
@@ -572,7 +572,7 @@ impl Clean<TyParamBound> for ty::TraitRef {
572
572
}
573
573
}
574
574
575
- impl Clean < Vec < TyParamBound > > for ty:: ParamBounds {
575
+ impl < ' tcx > Clean < Vec < TyParamBound > > for ty:: ParamBounds < ' tcx > {
576
576
fn clean ( & self , cx : & DocContext ) -> Vec < TyParamBound > {
577
577
let mut v = Vec :: new ( ) ;
578
578
for b in self . builtin_bounds . iter ( ) {
@@ -590,7 +590,7 @@ impl Clean<Vec<TyParamBound>> for ty::ParamBounds {
590
590
}
591
591
}
592
592
593
- impl Clean < Option < Vec < TyParamBound > > > for subst:: Substs {
593
+ impl < ' tcx > Clean < Option < Vec < TyParamBound > > > for subst:: Substs < ' tcx > {
594
594
fn clean ( & self , cx : & DocContext ) -> Option < Vec < TyParamBound > > {
595
595
let mut v = Vec :: new ( ) ;
596
596
v. extend ( self . regions ( ) . iter ( ) . filter_map ( |r| r. clean ( cx) ) . map ( RegionBound ) ) ;
@@ -697,7 +697,7 @@ impl Clean<Generics> for ast::Generics {
697
697
}
698
698
}
699
699
700
- impl < ' a > Clean < Generics > for ( & ' a ty:: Generics , subst:: ParamSpace ) {
700
+ impl < ' a , ' tcx > Clean < Generics > for ( & ' a ty:: Generics < ' tcx > , subst:: ParamSpace ) {
701
701
fn clean ( & self , cx : & DocContext ) -> Generics {
702
702
let ( me, space) = * self ;
703
703
Generics {
@@ -880,7 +880,7 @@ impl Clean<FnDecl> for ast::FnDecl {
880
880
}
881
881
}
882
882
883
- impl < ' a > Clean < Type > for ty:: FnOutput {
883
+ impl < ' tcx > Clean < Type > for ty:: FnOutput < ' tcx > {
884
884
fn clean ( & self , cx : & DocContext ) -> Type {
885
885
match * self {
886
886
ty:: FnConverging ( ty) => ty. clean ( cx) ,
@@ -889,7 +889,7 @@ impl<'a> Clean<Type> for ty::FnOutput {
889
889
}
890
890
}
891
891
892
- impl < ' a > Clean < FnDecl > for ( ast:: DefId , & ' a ty:: FnSig ) {
892
+ impl < ' a , ' tcx > Clean < FnDecl > for ( ast:: DefId , & ' a ty:: FnSig < ' tcx > ) {
893
893
fn clean ( & self , cx : & DocContext ) -> FnDecl {
894
894
let ( did, sig) = * self ;
895
895
let mut names = if did. node != 0 {
@@ -1034,7 +1034,7 @@ impl Clean<ImplMethod> for ast::ImplItem {
1034
1034
}
1035
1035
}
1036
1036
1037
- impl Clean < Item > for ty:: Method {
1037
+ impl < ' tcx > Clean < Item > for ty:: Method < ' tcx > {
1038
1038
fn clean ( & self , cx : & DocContext ) -> Item {
1039
1039
let ( self_, sig) = match self . explicit_self {
1040
1040
ty:: StaticExplicitSelfCategory => ( ast:: SelfStatic . clean ( cx) ,
@@ -1080,7 +1080,7 @@ impl Clean<Item> for ty::Method {
1080
1080
}
1081
1081
}
1082
1082
1083
- impl Clean < Item > for ty:: ImplOrTraitItem {
1083
+ impl < ' tcx > Clean < Item > for ty:: ImplOrTraitItem < ' tcx > {
1084
1084
fn clean ( & self , cx : & DocContext ) -> Item {
1085
1085
match * self {
1086
1086
ty:: MethodTraitItem ( ref mti) => mti. clean ( cx) ,
@@ -1264,7 +1264,7 @@ impl Clean<Type> for ast::Ty {
1264
1264
}
1265
1265
}
1266
1266
1267
- impl Clean < Type > for ty:: t {
1267
+ impl < ' tcx > Clean < Type > for ty:: Ty < ' tcx > {
1268
1268
fn clean ( & self , cx : & DocContext ) -> Type {
1269
1269
match self . sty {
1270
1270
ty:: ty_nil => Primitive ( Unit ) ,
@@ -1513,7 +1513,7 @@ impl Clean<Item> for doctree::Variant {
1513
1513
}
1514
1514
}
1515
1515
1516
- impl Clean < Item > for ty:: VariantInfo {
1516
+ impl < ' tcx > Clean < Item > for ty:: VariantInfo < ' tcx > {
1517
1517
fn clean ( & self , cx : & DocContext ) -> Item {
1518
1518
// use syntax::parse::token::special_idents::unnamed_field;
1519
1519
let kind = match self . arg_names . as_ref ( ) . map ( |s| s. as_slice ( ) ) {
@@ -2250,7 +2250,7 @@ impl Clean<Item> for ast::Typedef {
2250
2250
}
2251
2251
2252
2252
fn lang_struct ( cx : & DocContext , did : Option < ast:: DefId > ,
2253
- t : ty:: t , name : & str ,
2253
+ t : ty:: Ty , name : & str ,
2254
2254
fallback : fn ( Box < Type > ) -> Type ) -> Type {
2255
2255
let did = match did {
2256
2256
Some ( did) => did,
0 commit comments