@@ -1237,7 +1237,7 @@ fn item_type_alias(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &c
12371237
12381238 write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) ;
12391239
1240- if let Some ( inner_type) = & t. inner_type && t . should_display_inner_type ( ) {
1240+ if let Some ( inner_type) = & t. inner_type {
12411241 write ! (
12421242 w,
12431243 "<h2 id=\" aliased-type\" class=\" small-section-header\" >\
@@ -1256,7 +1256,7 @@ fn item_type_alias(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &c
12561256 render_enum_fields (
12571257 w,
12581258 cx,
1259- None ,
1259+ Some ( & t . generics ) ,
12601260 variants_iter ( ) ,
12611261 variants_count,
12621262 has_stripped_entries,
@@ -1271,7 +1271,16 @@ fn item_type_alias(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &c
12711271 let has_stripped_fields = fields. len ( ) != fields_count;
12721272
12731273 write ! ( w, "union {}{}" , it. name. unwrap( ) , t. generics. print( cx) ) ;
1274- render_struct_fields ( w, None , None , fields, "" , true , has_stripped_fields, cx) ;
1274+ render_struct_fields (
1275+ w,
1276+ Some ( & t. generics ) ,
1277+ None ,
1278+ fields,
1279+ "" ,
1280+ true ,
1281+ has_stripped_fields,
1282+ cx,
1283+ ) ;
12751284 } ) ;
12761285 item_fields ( w, cx, it, fields, None ) ;
12771286 }
@@ -1283,7 +1292,7 @@ fn item_type_alias(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &c
12831292 write ! ( w, "struct {}{}" , it. name. unwrap( ) , t. generics. print( cx) ) ;
12841293 render_struct_fields (
12851294 w,
1286- None ,
1295+ Some ( & t . generics ) ,
12871296 * ctor_kind,
12881297 fields,
12891298 "" ,
0 commit comments