Skip to content

Commit 037aa16

Browse files
committed
Fixing rustdoc
1 parent 540d08b commit 037aa16

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/librustdoc/clean/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1138,13 +1138,13 @@ pub struct Method {
11381138
pub abi: Abi,
11391139
}
11401140

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) {
11421142
fn clean(&self, cx: &DocContext) -> Method {
11431143
Method {
1144-
generics: self.0.generics.clean(cx),
1144+
generics: self.1.clean(cx),
11451145
unsafety: self.0.unsafety,
11461146
constness: self.0.constness,
1147-
decl: (&*self.0.decl, self.1).clean(cx),
1147+
decl: (&*self.0.decl, self.2).clean(cx),
11481148
abi: self.0.abi
11491149
}
11501150
}
@@ -1377,13 +1377,13 @@ impl Clean<Item> for hir::TraitItem {
13771377
default.map(|e| print_const_expr(cx, e)))
13781378
}
13791379
hir::TraitItemKind::Method(ref sig, hir::TraitMethod::Provided(body)) => {
1380-
MethodItem((sig, body).clean(cx))
1380+
MethodItem((sig, &self.generics, body).clean(cx))
13811381
}
13821382
hir::TraitItemKind::Method(ref sig, hir::TraitMethod::Required(ref names)) => {
13831383
TyMethodItem(TyMethod {
13841384
unsafety: sig.unsafety.clone(),
13851385
decl: (&*sig.decl, &names[..]).clean(cx),
1386-
generics: sig.generics.clean(cx),
1386+
generics: self.generics.clean(cx),
13871387
abi: sig.abi
13881388
})
13891389
}
@@ -1412,7 +1412,7 @@ impl Clean<Item> for hir::ImplItem {
14121412
Some(print_const_expr(cx, expr)))
14131413
}
14141414
hir::ImplItemKind::Method(ref sig, body) => {
1415-
MethodItem((sig, body).clean(cx))
1415+
MethodItem((sig, &self.generics, body).clean(cx))
14161416
}
14171417
hir::ImplItemKind::Type(ref ty) => TypedefItem(Typedef {
14181418
type_: ty.clean(cx),

0 commit comments

Comments
 (0)