@@ -202,7 +202,6 @@ pub(super) fn print_item(cx: &mut Context<'_>, item: &clean::Item, buf: &mut Buf
202202 clean:: ConstantItem ( ..) => "Constant " ,
203203 clean:: ForeignTypeItem => "Foreign Type " ,
204204 clean:: KeywordItem => "Keyword " ,
205- clean:: OpaqueTyItem ( ..) => "Opaque Type " ,
206205 clean:: TraitAliasItem ( ..) => "Trait Alias " ,
207206 _ => {
208207 // 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
270269 clean:: ConstantItem ( generics, ty, c) => item_constant ( buf, cx, item, generics, ty, c) ,
271270 clean:: ForeignTypeItem => item_foreign_type ( buf, cx, item) ,
272271 clean:: KeywordItem => item_keyword ( buf, cx, item) ,
273- clean:: OpaqueTyItem ( ref e) => item_opaque_ty ( buf, cx, item, e) ,
274272 clean:: TraitAliasItem ( ref ta) => item_trait_alias ( buf, cx, item, ta) ,
275273 _ => {
276274 // We don't generate pages for any other type.
@@ -1210,35 +1208,6 @@ fn item_trait_alias(
12101208 . unwrap ( ) ;
12111209}
12121210
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-
12421211fn item_type_alias ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , t : & clean:: TypeAlias ) {
12431212 wrap_item ( w, |w| {
12441213 write ! (
0 commit comments