mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
don't forget generics for GATs in impls
This commit is contained in:
parent
aefc0a223a
commit
9f21514426
@ -1042,15 +1042,9 @@ impl Clean<Item> for hir::ImplItem<'_> {
|
||||
}
|
||||
hir::ImplItemKind::TyAlias(ref hir_ty) => {
|
||||
let type_ = hir_ty.clean(cx);
|
||||
let generics = self.generics.clean(cx);
|
||||
let item_type = hir_ty_to_ty(cx.tcx, hir_ty).clean(cx);
|
||||
TypedefItem(
|
||||
Typedef {
|
||||
type_,
|
||||
generics: Generics::default(),
|
||||
item_type: Some(item_type),
|
||||
},
|
||||
true,
|
||||
)
|
||||
TypedefItem(Typedef { type_, generics, item_type: Some(item_type) }, true)
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user