@@ -202,7 +202,6 @@ pub(super) fn print_item(cx: &mut Context<'_>, item: &clean::Item, buf: &mut Buf
202
202
clean:: ConstantItem ( ..) => "Constant " ,
203
203
clean:: ForeignTypeItem => "Foreign Type " ,
204
204
clean:: KeywordItem => "Keyword " ,
205
- clean:: OpaqueTyItem ( ..) => "Opaque Type " ,
206
205
clean:: TraitAliasItem ( ..) => "Trait Alias " ,
207
206
_ => {
208
207
// We don't generate pages for any other type.
@@ -270,7 +269,6 @@ pub(super) fn print_item(cx: &mut Context<'_>, item: &clean::Item, buf: &mut Buf
270
269
clean:: ConstantItem ( generics, ty, c) => item_constant ( buf, cx, item, generics, ty, c) ,
271
270
clean:: ForeignTypeItem => item_foreign_type ( buf, cx, item) ,
272
271
clean:: KeywordItem => item_keyword ( buf, cx, item) ,
273
- clean:: OpaqueTyItem ( ref e) => item_opaque_ty ( buf, cx, item, e) ,
274
272
clean:: TraitAliasItem ( ref ta) => item_trait_alias ( buf, cx, item, ta) ,
275
273
_ => {
276
274
// We don't generate pages for any other type.
@@ -1210,35 +1208,6 @@ fn item_trait_alias(
1210
1208
. unwrap ( ) ;
1211
1209
}
1212
1210
1213
- fn item_opaque_ty (
1214
- w : & mut impl fmt:: Write ,
1215
- cx : & mut Context < ' _ > ,
1216
- it : & clean:: Item ,
1217
- t : & clean:: OpaqueTy ,
1218
- ) {
1219
- wrap_item ( w, |w| {
1220
- write ! (
1221
- w,
1222
- "{attrs}type {name}{generics}{where_clause} = impl {bounds};" ,
1223
- attrs = render_attributes_in_pre( it, "" , cx) ,
1224
- name = it. name. unwrap( ) ,
1225
- generics = t. generics. print( cx) ,
1226
- where_clause = print_where_clause( & t. generics, cx, 0 , Ending :: Newline ) ,
1227
- bounds = bounds( & t. bounds, false , cx) ,
1228
- )
1229
- . unwrap ( ) ;
1230
- } ) ;
1231
-
1232
- write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) . unwrap ( ) ;
1233
-
1234
- // Render any items associated directly to this alias, as otherwise they
1235
- // won't be visible anywhere in the docs. It would be nice to also show
1236
- // associated items from the aliased type (see discussion in #32077), but
1237
- // we need #14072 to make sense of the generics.
1238
- write ! ( w, "{}" , render_assoc_items( cx, it, it. item_id. expect_def_id( ) , AssocItemRender :: All ) )
1239
- . unwrap ( ) ;
1240
- }
1241
-
1242
1211
fn item_type_alias ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , t : & clean:: TypeAlias ) {
1243
1212
wrap_item ( w, |w| {
1244
1213
write ! (
0 commit comments