Skip to content

Commit 9f21514

Browse files
don't forget generics for GATs in impls
1 parent aefc0a2 commit 9f21514

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Diff for: src/librustdoc/clean/mod.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -1042,15 +1042,9 @@ impl Clean<Item> for hir::ImplItem<'_> {
10421042
}
10431043
hir::ImplItemKind::TyAlias(ref hir_ty) => {
10441044
let type_ = hir_ty.clean(cx);
1045+
let generics = self.generics.clean(cx);
10451046
let item_type = hir_ty_to_ty(cx.tcx, hir_ty).clean(cx);
1046-
TypedefItem(
1047-
Typedef {
1048-
type_,
1049-
generics: Generics::default(),
1050-
item_type: Some(item_type),
1051-
},
1052-
true,
1053-
)
1047+
TypedefItem(Typedef { type_, generics, item_type: Some(item_type) }, true)
10541048
}
10551049
};
10561050

0 commit comments

Comments
 (0)