@@ -1129,7 +1129,12 @@ fn item_trait_alias(
11291129 . unwrap ( ) ;
11301130}
11311131
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+ ) {
11331138 wrap_item ( w, |w| {
11341139 write ! (
11351140 w,
@@ -1139,16 +1144,18 @@ fn item_opaque_ty(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &cl
11391144 where_clause = print_where_clause( & t. generics, cx, 0 , Ending :: Newline ) ,
11401145 bounds = bounds( & t. bounds, false , cx) ,
11411146 attrs = render_attributes_in_pre( it, "" , cx. tcx( ) ) ,
1142- ) ;
1147+ )
1148+ . unwrap ( ) ;
11431149 } ) ;
11441150
1145- write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) ;
1151+ write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) . unwrap ( ) ;
11461152
11471153 // Render any items associated directly to this alias, as otherwise they
11481154 // won't be visible anywhere in the docs. It would be nice to also show
11491155 // associated items from the aliased type (see discussion in #32077), but
11501156 // we need #14072 to make sense of the generics.
11511157 write ! ( w, "{}" , render_assoc_items( cx, it, it. item_id. expect_def_id( ) , AssocItemRender :: All ) )
1158+ . unwrap ( ) ;
11521159}
11531160
11541161fn item_typedef ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , t : & clean:: Typedef ) {
0 commit comments