@@ -1138,13 +1138,13 @@ pub struct Method {
1138
1138
pub abi : Abi ,
1139
1139
}
1140
1140
1141
- impl < ' a > Clean < Method > for ( & ' a hir:: MethodSig , hir:: BodyId ) {
1141
+ impl < ' a > Clean < Method > for ( & ' a hir:: MethodSig , & ' a hir :: Generics , hir:: BodyId ) {
1142
1142
fn clean ( & self , cx : & DocContext ) -> Method {
1143
1143
Method {
1144
- generics : self . 0 . generics . clean ( cx) ,
1144
+ generics : self . 1 . clean ( cx) ,
1145
1145
unsafety : self . 0 . unsafety ,
1146
1146
constness : self . 0 . constness ,
1147
- decl : ( & * self . 0 . decl , self . 1 ) . clean ( cx) ,
1147
+ decl : ( & * self . 0 . decl , self . 2 ) . clean ( cx) ,
1148
1148
abi : self . 0 . abi
1149
1149
}
1150
1150
}
@@ -1377,13 +1377,13 @@ impl Clean<Item> for hir::TraitItem {
1377
1377
default. map ( |e| print_const_expr ( cx, e) ) )
1378
1378
}
1379
1379
hir:: TraitItemKind :: Method ( ref sig, hir:: TraitMethod :: Provided ( body) ) => {
1380
- MethodItem ( ( sig, body) . clean ( cx) )
1380
+ MethodItem ( ( sig, & self . generics , body) . clean ( cx) )
1381
1381
}
1382
1382
hir:: TraitItemKind :: Method ( ref sig, hir:: TraitMethod :: Required ( ref names) ) => {
1383
1383
TyMethodItem ( TyMethod {
1384
1384
unsafety : sig. unsafety . clone ( ) ,
1385
1385
decl : ( & * sig. decl , & names[ ..] ) . clean ( cx) ,
1386
- generics : sig . generics . clean ( cx) ,
1386
+ generics : self . generics . clean ( cx) ,
1387
1387
abi : sig. abi
1388
1388
} )
1389
1389
}
@@ -1412,7 +1412,7 @@ impl Clean<Item> for hir::ImplItem {
1412
1412
Some ( print_const_expr ( cx, expr) ) )
1413
1413
}
1414
1414
hir:: ImplItemKind :: Method ( ref sig, body) => {
1415
- MethodItem ( ( sig, body) . clean ( cx) )
1415
+ MethodItem ( ( sig, & self . generics , body) . clean ( cx) )
1416
1416
}
1417
1417
hir:: ImplItemKind :: Type ( ref ty) => TypedefItem ( Typedef {
1418
1418
type_ : ty. clean ( cx) ,
0 commit comments