@@ -262,6 +262,15 @@ impl Clean<Vec<Item>> for hir::Item<'_> {
262
262
// TODO: this should also take the span into account (inner or outer)
263
263
ItemKind :: Mod ( ref mod_) => NotInlined ( mod_. clean ( cx) ) ,
264
264
ItemKind :: ForeignMod ( ref mod_) => NotInlined ( mod_. clean ( cx) ) ,
265
+ ItemKind :: GlobalAsm ( ..) => MaybeInlined :: InlinedWithoutOriginal ( vec ! [ ] ) , // not handled
266
+ ItemKind :: TyAlias ( ty, ref generics) => {
267
+ let rustdoc_ty = ty. clean ( cx) ;
268
+ let item_type = rustdoc_ty. def_id ( ) . and_then ( |did| inline:: build_ty ( cx, did) ) ;
269
+ NotInlined ( TypedefItem (
270
+ Typedef { type_ : rustdoc_ty, generics : generics. clean ( cx) , item_type } ,
271
+ false ,
272
+ ) )
273
+ }
265
274
ItemKind :: Union ( ref variant_data, ref generics) => NotInlined ( UnionItem ( Union {
266
275
struct_type : doctree:: struct_type_from_def ( & variant_data) ,
267
276
generics : generics. clean ( cx) ,
@@ -2066,19 +2075,6 @@ impl Clean<String> for Symbol {
2066
2075
}
2067
2076
}
2068
2077
2069
- impl Clean < Item > for doctree:: Typedef < ' _ > {
2070
- fn clean ( & self , cx : & DocContext < ' _ > ) -> Item {
2071
- let type_ = self . ty . clean ( cx) ;
2072
- let item_type = type_. def_id ( ) . and_then ( |did| inline:: build_ty ( cx, did) ) ;
2073
- Item :: from_hir_id_and_parts (
2074
- self . id ,
2075
- Some ( self . name ) ,
2076
- TypedefItem ( Typedef { type_, generics : self . gen . clean ( cx) , item_type } , false ) ,
2077
- cx,
2078
- )
2079
- }
2080
- }
2081
-
2082
2078
impl Clean < Item > for doctree:: OpaqueTy < ' _ > {
2083
2079
fn clean ( & self , cx : & DocContext < ' _ > ) -> Item {
2084
2080
Item :: from_hir_id_and_parts (
0 commit comments