@@ -1121,7 +1121,14 @@ impl Clean<Item> for hir::ImplItem<'_> {
11211121 hir:: ImplItemKind :: TyAlias ( ref hir_ty) => {
11221122 let type_ = hir_ty. clean ( cx) ;
11231123 let item_type = hir_ty_to_ty ( cx. tcx , hir_ty) . clean ( cx) ;
1124- TypedefItem ( Typedef { type_, generics : Generics :: default ( ) , item_type : Some ( item_type) } , true )
1124+ TypedefItem (
1125+ Typedef {
1126+ type_,
1127+ generics : Generics :: default ( ) ,
1128+ item_type : Some ( item_type) ,
1129+ } ,
1130+ true ,
1131+ )
11251132 }
11261133 } ;
11271134 Item :: from_def_id_and_parts ( local_did, Some ( self . ident . name ) , inner, cx)
@@ -1271,9 +1278,9 @@ impl Clean<Item> for ty::AssocItem {
12711278 let type_ = cx. tcx . type_of ( self . def_id ) . clean ( cx) ;
12721279 TypedefItem (
12731280 Typedef {
1274- type_ : type_ . clone ( ) ,
1281+ type_,
12751282 generics : Generics { params : Vec :: new ( ) , where_predicates : Vec :: new ( ) } ,
1276- item_type : Some ( type_ ) ,
1283+ item_type : None ,
12771284 } ,
12781285 true ,
12791286 )
@@ -1988,9 +1995,13 @@ impl Clean<Vec<Item>> for (&hir::Item<'_>, Option<Symbol>) {
19881995 } ) ,
19891996 ItemKind :: TyAlias ( hir_ty, ref generics) => {
19901997 let rustdoc_ty = hir_ty. clean ( cx) ;
1991- let ty = hir_ty_to_ty ( cx. tcx , hir_ty) ;
1998+ let ty = hir_ty_to_ty ( cx. tcx , hir_ty) . clean ( cx ) ;
19921999 TypedefItem (
1993- Typedef { type_ : rustdoc_ty, generics : generics. clean ( cx) , item_type : Some ( ty. clean ( cx) ) } ,
2000+ Typedef {
2001+ type_ : rustdoc_ty,
2002+ generics : generics. clean ( cx) ,
2003+ item_type : Some ( ty) ,
2004+ } ,
19942005 false ,
19952006 )
19962007 }
0 commit comments