@@ -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 ( ci) => item_constant ( buf, cx, item, & ci. generics , & ci. type_ , & ci. kind ) ,
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.
@@ -1197,35 +1195,6 @@ fn item_trait_alias(
11971195 . unwrap ( ) ;
11981196}
11991197
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-
12291198fn item_type_alias ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , t : & clean:: TypeAlias ) {
12301199 wrap_item ( w, |w| {
12311200 write ! (
0 commit comments