@@ -478,7 +478,7 @@ impl Clean<TyParam> for ast::TyParam {
478
478
}
479
479
}
480
480
481
- impl Clean < TyParam > for ty:: TypeParameterDef {
481
+ impl < ' tcx > Clean < TyParam > for ty:: TypeParameterDef < ' tcx > {
482
482
fn clean ( & self , cx : & DocContext ) -> TyParam {
483
483
cx. external_typarams . borrow_mut ( ) . as_mut ( ) . unwrap ( )
484
484
. insert ( self . def_id , self . name . clean ( cx) ) ;
@@ -567,7 +567,7 @@ impl Clean<TyParamBound> for ty::BuiltinBound {
567
567
}
568
568
}
569
569
570
- impl Clean < TyParamBound > for ty:: TraitRef {
570
+ impl < ' tcx > Clean < TyParamBound > for ty:: TraitRef < ' tcx > {
571
571
fn clean ( & self , cx : & DocContext ) -> TyParamBound {
572
572
let tcx = match cx. tcx_opt ( ) {
573
573
Some ( tcx) => tcx,
@@ -588,7 +588,7 @@ impl Clean<TyParamBound> for ty::TraitRef {
588
588
}
589
589
}
590
590
591
- impl Clean < Vec < TyParamBound > > for ty:: ParamBounds {
591
+ impl < ' tcx > Clean < Vec < TyParamBound > > for ty:: ParamBounds < ' tcx > {
592
592
fn clean ( & self , cx : & DocContext ) -> Vec < TyParamBound > {
593
593
let mut v = Vec :: new ( ) ;
594
594
for b in self . builtin_bounds . iter ( ) {
@@ -606,7 +606,7 @@ impl Clean<Vec<TyParamBound>> for ty::ParamBounds {
606
606
}
607
607
}
608
608
609
- impl Clean < Option < Vec < TyParamBound > > > for subst:: Substs {
609
+ impl < ' tcx > Clean < Option < Vec < TyParamBound > > > for subst:: Substs < ' tcx > {
610
610
fn clean ( & self , cx : & DocContext ) -> Option < Vec < TyParamBound > > {
611
611
let mut v = Vec :: new ( ) ;
612
612
v. extend ( self . regions ( ) . iter ( ) . filter_map ( |r| r. clean ( cx) ) . map ( RegionBound ) ) ;
@@ -698,7 +698,7 @@ impl Clean<Generics> for ast::Generics {
698
698
}
699
699
}
700
700
701
- impl < ' a > Clean < Generics > for ( & ' a ty:: Generics , subst:: ParamSpace ) {
701
+ impl < ' a , ' tcx > Clean < Generics > for ( & ' a ty:: Generics < ' tcx > , subst:: ParamSpace ) {
702
702
fn clean ( & self , cx : & DocContext ) -> Generics {
703
703
let ( me, space) = * self ;
704
704
Generics {
@@ -877,7 +877,7 @@ impl Clean<FnDecl> for ast::FnDecl {
877
877
}
878
878
}
879
879
880
- impl < ' a > Clean < Type > for ty:: FnOutput {
880
+ impl < ' tcx > Clean < Type > for ty:: FnOutput < ' tcx > {
881
881
fn clean ( & self , cx : & DocContext ) -> Type {
882
882
match * self {
883
883
ty:: FnConverging ( ty) => ty. clean ( cx) ,
@@ -886,7 +886,7 @@ impl<'a> Clean<Type> for ty::FnOutput {
886
886
}
887
887
}
888
888
889
- impl < ' a > Clean < FnDecl > for ( ast:: DefId , & ' a ty:: FnSig ) {
889
+ impl < ' a , ' tcx > Clean < FnDecl > for ( ast:: DefId , & ' a ty:: FnSig < ' tcx > ) {
890
890
fn clean ( & self , cx : & DocContext ) -> FnDecl {
891
891
let ( did, sig) = * self ;
892
892
let mut names = if did. node != 0 {
@@ -1036,7 +1036,7 @@ impl Clean<ImplMethod> for ast::ImplItem {
1036
1036
}
1037
1037
}
1038
1038
1039
- impl Clean < Item > for ty:: Method {
1039
+ impl < ' tcx > Clean < Item > for ty:: Method < ' tcx > {
1040
1040
fn clean ( & self , cx : & DocContext ) -> Item {
1041
1041
let ( self_, sig) = match self . explicit_self {
1042
1042
ty:: StaticExplicitSelfCategory => ( ast:: SelfStatic . clean ( cx) ,
@@ -1082,7 +1082,7 @@ impl Clean<Item> for ty::Method {
1082
1082
}
1083
1083
}
1084
1084
1085
- impl Clean < Item > for ty:: ImplOrTraitItem {
1085
+ impl < ' tcx > Clean < Item > for ty:: ImplOrTraitItem < ' tcx > {
1086
1086
fn clean ( & self , cx : & DocContext ) -> Item {
1087
1087
match * self {
1088
1088
ty:: MethodTraitItem ( ref mti) => mti. clean ( cx) ,
@@ -1257,7 +1257,7 @@ impl Clean<Type> for ast::Ty {
1257
1257
}
1258
1258
}
1259
1259
1260
- impl Clean < Type > for Ty {
1260
+ impl < ' tcx > Clean < Type > for ty :: Ty < ' tcx > {
1261
1261
fn clean ( & self , cx : & DocContext ) -> Type {
1262
1262
match self . sty {
1263
1263
ty:: ty_bool => Primitive ( Bool ) ,
@@ -1506,7 +1506,7 @@ impl Clean<Item> for doctree::Variant {
1506
1506
}
1507
1507
}
1508
1508
1509
- impl Clean < Item > for ty:: VariantInfo {
1509
+ impl < ' tcx > Clean < Item > for ty:: VariantInfo < ' tcx > {
1510
1510
fn clean ( & self , cx : & DocContext ) -> Item {
1511
1511
// use syntax::parse::token::special_idents::unnamed_field;
1512
1512
let kind = match self . arg_names . as_ref ( ) . map ( |s| s. as_slice ( ) ) {
@@ -2255,7 +2255,7 @@ impl Clean<Item> for ast::Typedef {
2255
2255
}
2256
2256
2257
2257
fn lang_struct ( cx : & DocContext , did : Option < ast:: DefId > ,
2258
- t : Ty , name : & str ,
2258
+ t : ty :: Ty , name : & str ,
2259
2259
fallback : fn ( Box < Type > ) -> Type ) -> Type {
2260
2260
let did = match did {
2261
2261
Some ( did) => did,
0 commit comments