@@ -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 ( ci) => item_constant ( buf, cx, item, & ci. generics , & ci. type_ , & ci. kind ) ,
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.
@@ -1197,35 +1195,6 @@ fn item_trait_alias(
1197
1195
. unwrap ( ) ;
1198
1196
}
1199
1197
1200
- fn item_opaque_ty (
1201
- w : & mut impl fmt:: Write ,
1202
- cx : & mut Context < ' _ > ,
1203
- it : & clean:: Item ,
1204
- t : & clean:: OpaqueTy ,
1205
- ) {
1206
- wrap_item ( w, |w| {
1207
- write ! (
1208
- w,
1209
- "{attrs}type {name}{generics}{where_clause} = impl {bounds};" ,
1210
- attrs = render_attributes_in_pre( it, "" , cx) ,
1211
- name = it. name. unwrap( ) ,
1212
- generics = t. generics. print( cx) ,
1213
- where_clause = print_where_clause( & t. generics, cx, 0 , Ending :: Newline ) ,
1214
- bounds = bounds( & t. bounds, false , cx) ,
1215
- )
1216
- . unwrap ( ) ;
1217
- } ) ;
1218
-
1219
- write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) . unwrap ( ) ;
1220
-
1221
- // Render any items associated directly to this alias, as otherwise they
1222
- // won't be visible anywhere in the docs. It would be nice to also show
1223
- // associated items from the aliased type (see discussion in #32077), but
1224
- // we need #14072 to make sense of the generics.
1225
- write ! ( w, "{}" , render_assoc_items( cx, it, it. item_id. expect_def_id( ) , AssocItemRender :: All ) )
1226
- . unwrap ( ) ;
1227
- }
1228
-
1229
1198
fn item_type_alias ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , t : & clean:: TypeAlias ) {
1230
1199
wrap_item ( w, |w| {
1231
1200
write ! (
0 commit comments