From 9f2151442611cd85cdb82d1097ed72fcf7956e4c Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Mon, 14 Feb 2022 19:06:08 -0800 Subject: [PATCH] don't forget generics for GATs in impls --- src/librustdoc/clean/mod.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index fb88b9f7895..41940918062 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1042,15 +1042,9 @@ impl Clean 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) } };