@@ -1121,7 +1121,14 @@ impl Clean<Item> for hir::ImplItem<'_> {
1121
1121
hir:: ImplItemKind :: TyAlias ( ref hir_ty) => {
1122
1122
let type_ = hir_ty. clean ( cx) ;
1123
1123
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
+ )
1125
1132
}
1126
1133
} ;
1127
1134
Item :: from_def_id_and_parts ( local_did, Some ( self . ident . name ) , inner, cx)
@@ -1271,9 +1278,9 @@ impl Clean<Item> for ty::AssocItem {
1271
1278
let type_ = cx. tcx . type_of ( self . def_id ) . clean ( cx) ;
1272
1279
TypedefItem (
1273
1280
Typedef {
1274
- type_ : type_ . clone ( ) ,
1281
+ type_,
1275
1282
generics : Generics { params : Vec :: new ( ) , where_predicates : Vec :: new ( ) } ,
1276
- item_type : Some ( type_ ) ,
1283
+ item_type : None ,
1277
1284
} ,
1278
1285
true ,
1279
1286
)
@@ -1988,9 +1995,13 @@ impl Clean<Vec<Item>> for (&hir::Item<'_>, Option<Symbol>) {
1988
1995
} ) ,
1989
1996
ItemKind :: TyAlias ( hir_ty, ref generics) => {
1990
1997
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 ) ;
1992
1999
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
+ } ,
1994
2005
false ,
1995
2006
)
1996
2007
}
0 commit comments