mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +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) => {
|
hir::ImplItemKind::TyAlias(ref hir_ty) => {
|
||||||
let type_ = hir_ty.clean(cx);
|
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);
|
let item_type = hir_ty_to_ty(cx.tcx, hir_ty).clean(cx);
|
||||||
TypedefItem(
|
TypedefItem(Typedef { type_, generics, item_type: Some(item_type) }, true)
|
||||||
Typedef {
|
|
||||||
type_,
|
|
||||||
generics: Generics::default(),
|
|
||||||
item_type: Some(item_type),
|
|
||||||
},
|
|
||||||
true,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user