@@ -1124,7 +1124,12 @@ fn item_trait_alias(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &
11241124 write ! ( w, "{}" , render_assoc_items( cx, it, it. item_id. expect_def_id( ) , AssocItemRender :: All ) )
11251125}
11261126
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+ ) {
11281133 wrap_item ( w, |w| {
11291134 write ! (
11301135 w,
@@ -1134,16 +1139,18 @@ fn item_opaque_ty(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &cl
11341139 where_clause = print_where_clause( & t. generics, cx, 0 , Ending :: Newline ) ,
11351140 bounds = bounds( & t. bounds, false , cx) ,
11361141 attrs = render_attributes_in_pre( it, "" , cx. tcx( ) ) ,
1137- ) ;
1142+ )
1143+ . unwrap ( ) ;
11381144 } ) ;
11391145
1140- write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) ;
1146+ write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) . unwrap ( ) ;
11411147
11421148 // Render any items associated directly to this alias, as otherwise they
11431149 // won't be visible anywhere in the docs. It would be nice to also show
11441150 // associated items from the aliased type (see discussion in #32077), but
11451151 // we need #14072 to make sense of the generics.
11461152 write ! ( w, "{}" , render_assoc_items( cx, it, it. item_id. expect_def_id( ) , AssocItemRender :: All ) )
1153+ . unwrap ( ) ;
11471154}
11481155
11491156fn item_typedef ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , t : & clean:: Typedef ) {
0 commit comments