@@ -202,7 +202,7 @@ 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 " ,
205+ // clean::OpaqueTyItem(..) => "Opaque Type ",
206206 clean:: TraitAliasItem ( ..) => "Trait Alias " ,
207207 _ => {
208208 // We don't generate pages for any other type.
@@ -270,7 +270,7 @@ pub(super) fn print_item(cx: &mut Context<'_>, item: &clean::Item, buf: &mut Buf
270270 clean:: ConstantItem ( generics, ty, c) => item_constant ( buf, cx, item, generics, ty, c) ,
271271 clean:: ForeignTypeItem => item_foreign_type ( buf, cx, item) ,
272272 clean:: KeywordItem => item_keyword ( buf, cx, item) ,
273- clean:: OpaqueTyItem ( ref e) => item_opaque_ty ( buf, cx, item, e) ,
273+ // clean::OpaqueTyItem(ref e) => item_opaque_ty(buf, cx, item, e),
274274 clean:: TraitAliasItem ( ref ta) => item_trait_alias ( buf, cx, item, ta) ,
275275 _ => {
276276 // We don't generate pages for any other type.
@@ -1210,35 +1210,6 @@ fn item_trait_alias(
12101210 . unwrap ( ) ;
12111211}
12121212
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-
12421213fn item_type_alias ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , t : & clean:: TypeAlias ) {
12431214 wrap_item ( w, |w| {
12441215 write ! (
0 commit comments