@@ -547,8 +547,8 @@ impl Item {
547547 pub ( crate ) fn is_associated_type ( & self ) -> bool {
548548 matches ! ( self . kind, AssocTypeItem ( ..) | StrippedItem ( box AssocTypeItem ( ..) ) )
549549 }
550- pub ( crate ) fn is_ty_associated_type ( & self ) -> bool {
551- matches ! ( self . kind, TyAssocTypeItem ( ..) | StrippedItem ( box TyAssocTypeItem ( ..) ) )
550+ pub ( crate ) fn is_required_associated_type ( & self ) -> bool {
551+ matches ! ( self . kind, RequiredAssocTypeItem ( ..) | StrippedItem ( box RequiredAssocTypeItem ( ..) ) )
552552 }
553553 pub ( crate ) fn is_associated_const ( & self ) -> bool {
554554 matches ! ( self . kind, ProvidedAssocConstItem ( ..) | ImplAssocConstItem ( ..) | StrippedItem ( box ( ProvidedAssocConstItem ( ..) | ImplAssocConstItem ( ..) ) ) )
@@ -705,7 +705,7 @@ impl Item {
705705 | ProvidedAssocConstItem ( ..)
706706 | ImplAssocConstItem ( ..)
707707 | AssocTypeItem ( ..)
708- | TyAssocTypeItem ( ..)
708+ | RequiredAssocTypeItem ( ..)
709709 | TyMethodItem ( ..)
710710 | MethodItem ( ..) => {
711711 let assoc_item = tcx. associated_item ( def_id) ;
@@ -878,7 +878,7 @@ pub(crate) enum ItemKind {
878878 /// A required associated type in a trait declaration.
879879 ///
880880 /// The bounds may be non-empty if there is a `where` clause.
881- TyAssocTypeItem ( Generics , Vec < GenericBound > ) ,
881+ RequiredAssocTypeItem ( Generics , Vec < GenericBound > ) ,
882882 /// An associated type in a trait impl or a provided one in a trait declaration.
883883 AssocTypeItem ( Box < TypeAlias > , Vec < GenericBound > ) ,
884884 /// An item that has been stripped by a rustdoc pass
@@ -921,7 +921,7 @@ impl ItemKind {
921921 | RequiredAssocConstItem ( ..)
922922 | ProvidedAssocConstItem ( ..)
923923 | ImplAssocConstItem ( ..)
924- | TyAssocTypeItem ( ..)
924+ | RequiredAssocTypeItem ( ..)
925925 | AssocTypeItem ( ..)
926926 | StrippedItem ( _)
927927 | KeywordItem => [ ] . iter ( ) ,
0 commit comments