@@ -1124,7 +1124,12 @@ fn item_trait_alias(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &
1124
1124
write ! ( w, "{}" , render_assoc_items( cx, it, it. item_id. expect_def_id( ) , AssocItemRender :: All ) )
1125
1125
}
1126
1126
1127
- fn item_opaque_ty ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , t : & clean:: OpaqueTy ) {
1127
+ fn item_opaque_ty (
1128
+ w : & mut impl fmt:: Write ,
1129
+ cx : & mut Context < ' _ > ,
1130
+ it : & clean:: Item ,
1131
+ t : & clean:: OpaqueTy ,
1132
+ ) {
1128
1133
wrap_item ( w, |w| {
1129
1134
write ! (
1130
1135
w,
@@ -1134,16 +1139,18 @@ fn item_opaque_ty(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &cl
1134
1139
where_clause = print_where_clause( & t. generics, cx, 0 , Ending :: Newline ) ,
1135
1140
bounds = bounds( & t. bounds, false , cx) ,
1136
1141
attrs = render_attributes_in_pre( it, "" , cx. tcx( ) ) ,
1137
- ) ;
1142
+ )
1143
+ . unwrap ( ) ;
1138
1144
} ) ;
1139
1145
1140
- write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) ;
1146
+ write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) . unwrap ( ) ;
1141
1147
1142
1148
// Render any items associated directly to this alias, as otherwise they
1143
1149
// won't be visible anywhere in the docs. It would be nice to also show
1144
1150
// associated items from the aliased type (see discussion in #32077), but
1145
1151
// we need #14072 to make sense of the generics.
1146
1152
write ! ( w, "{}" , render_assoc_items( cx, it, it. item_id. expect_def_id( ) , AssocItemRender :: All ) )
1153
+ . unwrap ( ) ;
1147
1154
}
1148
1155
1149
1156
fn item_typedef ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , t : & clean:: Typedef ) {
0 commit comments