@@ -1121,7 +1121,7 @@ impl Clean<Item> for hir::ImplItem<'_> {
11211121 hir:: ImplItemKind :: TyAlias ( ref ty) => {
11221122 let type_ = ty. clean ( cx) ;
11231123 let item_type = type_. def_id ( ) . and_then ( |did| inline:: build_ty ( cx, did) ) ;
1124- TypedefItem ( Typedef { type_, generics : Generics :: default ( ) , item_type } , true )
1124+ TypedefItem ( box Typedef { type_, generics : Generics :: default ( ) , item_type } , true )
11251125 }
11261126 } ;
11271127 Item :: from_def_id_and_parts ( local_did, Some ( self . ident . name . clean ( cx) ) , inner, cx)
@@ -1270,7 +1270,7 @@ impl Clean<Item> for ty::AssocItem {
12701270 let type_ = cx. tcx . type_of ( self . def_id ) . clean ( cx) ;
12711271 let item_type = type_. def_id ( ) . and_then ( |did| inline:: build_ty ( cx, did) ) ;
12721272 TypedefItem (
1273- Typedef {
1273+ box Typedef {
12741274 type_,
12751275 generics : Generics { params : Vec :: new ( ) , where_predicates : Vec :: new ( ) } ,
12761276 item_type,
@@ -1981,7 +1981,7 @@ impl Clean<Vec<Item>> for (&hir::Item<'_>, Option<Symbol>) {
19811981 let rustdoc_ty = ty. clean ( cx) ;
19821982 let item_type = rustdoc_ty. def_id ( ) . and_then ( |did| inline:: build_ty ( cx, did) ) ;
19831983 TypedefItem (
1984- Typedef { type_ : rustdoc_ty, generics : generics. clean ( cx) , item_type } ,
1984+ box Typedef { type_ : rustdoc_ty, generics : generics. clean ( cx) , item_type } ,
19851985 false ,
19861986 )
19871987 }
0 commit comments