We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aefc0a2 commit 9f21514Copy full SHA for 9f21514
src/librustdoc/clean/mod.rs
@@ -1042,15 +1042,9 @@ impl Clean<Item> for hir::ImplItem<'_> {
1042
}
1043
hir::ImplItemKind::TyAlias(ref hir_ty) => {
1044
let type_ = hir_ty.clean(cx);
1045
+ let generics = self.generics.clean(cx);
1046
let item_type = hir_ty_to_ty(cx.tcx, hir_ty).clean(cx);
- TypedefItem(
1047
- Typedef {
1048
- type_,
1049
- generics: Generics::default(),
1050
- item_type: Some(item_type),
1051
- },
1052
- true,
1053
- )
+ TypedefItem(Typedef { type_, generics, item_type: Some(item_type) }, true)
1054
1055
};
1056
0 commit comments