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