@@ -548,7 +548,7 @@ impl Item {
548
548
matches ! ( self . kind, AssocTypeItem ( ..) | StrippedItem ( box AssocTypeItem ( ..) ) )
549
549
}
550
550
pub ( crate ) fn is_ty_associated_type ( & self ) -> bool {
551
- matches ! ( self . kind, TyAssocTypeItem ( ..) | StrippedItem ( box TyAssocTypeItem ( ..) ) )
551
+ matches ! ( self . kind, RequiredAssocTypeItem ( ..) | StrippedItem ( box RequiredAssocTypeItem ( ..) ) )
552
552
}
553
553
pub ( crate ) fn is_associated_const ( & self ) -> bool {
554
554
matches ! ( self . kind, ProvidedAssocConstItem ( ..) | ImplAssocConstItem ( ..) | StrippedItem ( box ( ProvidedAssocConstItem ( ..) | ImplAssocConstItem ( ..) ) ) )
@@ -705,7 +705,7 @@ impl Item {
705
705
| ProvidedAssocConstItem ( ..)
706
706
| ImplAssocConstItem ( ..)
707
707
| AssocTypeItem ( ..)
708
- | TyAssocTypeItem ( ..)
708
+ | RequiredAssocTypeItem ( ..)
709
709
| TyMethodItem ( ..)
710
710
| MethodItem ( ..) => {
711
711
let assoc_item = tcx. associated_item ( def_id) ;
@@ -878,7 +878,7 @@ pub(crate) enum ItemKind {
878
878
/// A required associated type in a trait declaration.
879
879
///
880
880
/// The bounds may be non-empty if there is a `where` clause.
881
- TyAssocTypeItem ( Generics , Vec < GenericBound > ) ,
881
+ RequiredAssocTypeItem ( Generics , Vec < GenericBound > ) ,
882
882
/// An associated type in a trait impl or a provided one in a trait declaration.
883
883
AssocTypeItem ( Box < TypeAlias > , Vec < GenericBound > ) ,
884
884
/// An item that has been stripped by a rustdoc pass
@@ -921,7 +921,7 @@ impl ItemKind {
921
921
| RequiredAssocConstItem ( ..)
922
922
| ProvidedAssocConstItem ( ..)
923
923
| ImplAssocConstItem ( ..)
924
- | TyAssocTypeItem ( ..)
924
+ | RequiredAssocTypeItem ( ..)
925
925
| AssocTypeItem ( ..)
926
926
| StrippedItem ( _)
927
927
| KeywordItem => [ ] . iter ( ) ,
0 commit comments