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