Skip to content

Commit b43db76

Browse files
committed
Fixing rustdoc
1 parent 2095ac1 commit b43db76

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,13 +1140,13 @@ pub struct Method {
11401140
pub abi: Abi,
11411141
}
11421142

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) {
11441144
fn clean(&self, cx: &DocContext) -> Method {
11451145
Method {
1146-
generics: self.0.generics.clean(cx),
1146+
generics: self.1.clean(cx),
11471147
unsafety: self.0.unsafety,
11481148
constness: self.0.constness,
1149-
decl: (&*self.0.decl, self.1).clean(cx),
1149+
decl: (&*self.0.decl, self.2).clean(cx),
11501150
abi: self.0.abi
11511151
}
11521152
}
@@ -1379,13 +1379,13 @@ impl Clean<Item> for hir::TraitItem {
13791379
default.map(|e| print_const_expr(cx, e)))
13801380
}
13811381
hir::TraitItemKind::Method(ref sig, hir::TraitMethod::Provided(body)) => {
1382-
MethodItem((sig, body).clean(cx))
1382+
MethodItem((sig, &self.generics, body).clean(cx))
13831383
}
13841384
hir::TraitItemKind::Method(ref sig, hir::TraitMethod::Required(ref names)) => {
13851385
TyMethodItem(TyMethod {
13861386
unsafety: sig.unsafety.clone(),
13871387
decl: (&*sig.decl, &names[..]).clean(cx),
1388-
generics: sig.generics.clean(cx),
1388+
generics: self.generics.clean(cx),
13891389
abi: sig.abi
13901390
})
13911391
}
@@ -1414,7 +1414,7 @@ impl Clean<Item> for hir::ImplItem {
14141414
Some(print_const_expr(cx, expr)))
14151415
}
14161416
hir::ImplItemKind::Method(ref sig, body) => {
1417-
MethodItem((sig, body).clean(cx))
1417+
MethodItem((sig, &self.generics, body).clean(cx))
14181418
}
14191419
hir::ImplItemKind::Type(ref ty) => TypedefItem(Typedef {
14201420
type_: ty.clean(cx),

0 commit comments

Comments
 (0)