@@ -20,7 +20,8 @@ use rustc_span::symbol::{kw, sym, Symbol};
2020use crate :: clean:: {
2121 self , clean_fn_decl_from_did_and_sig, clean_generics, clean_impl_item, clean_middle_assoc_item,
2222 clean_middle_field, clean_middle_ty, clean_trait_ref_with_bindings, clean_ty,
23- clean_ty_generics, clean_variant_def, utils, Attributes , AttributesExt , ImplKind , ItemId , Type ,
23+ clean_ty_alias_inner_type, clean_ty_generics, clean_variant_def, utils, Attributes ,
24+ AttributesExt , ImplKind , ItemId , Type ,
2425} ;
2526use crate :: core:: DocContext ;
2627use crate :: formats:: item_type:: ItemType ;
@@ -289,19 +290,14 @@ fn build_union(cx: &mut DocContext<'_>, did: DefId) -> clean::Union {
289290
290291fn build_type_alias ( cx : & mut DocContext < ' _ > , did : DefId ) -> Box < clean:: TypeAlias > {
291292 let predicates = cx. tcx . explicit_predicates_of ( did) ;
292- let type_ = clean_middle_ty (
293- ty:: Binder :: dummy ( cx. tcx . type_of ( did) . instantiate_identity ( ) ) ,
294- cx,
295- Some ( did) ,
296- None ,
297- ) ;
293+ let ty = cx. tcx . type_of ( did) . instantiate_identity ( ) ;
294+ let type_ = clean_middle_ty ( ty:: Binder :: dummy ( ty) , cx, Some ( did) , None ) ;
295+ let inner_type = clean_ty_alias_inner_type ( ty, cx) ;
298296
299297 Box :: new ( clean:: TypeAlias {
300298 type_,
301299 generics : clean_ty_generics ( cx, cx. tcx . generics_of ( did) , predicates) ,
302- // FIXME: Figure-out how to handle inner_type with
303- // clean_ty_typedef_inner_type
304- inner_type : None ,
300+ inner_type,
305301 item_type : None ,
306302 } )
307303}
0 commit comments