@@ -553,8 +553,8 @@ impl Item {
553553 pub ( crate ) fn is_associated_const ( & self ) -> bool {
554554 matches ! ( self . kind, AssocConstItem ( ..) | StrippedItem ( box AssocConstItem ( ..) ) )
555555 }
556- pub ( crate ) fn is_ty_associated_const ( & self ) -> bool {
557- matches ! ( self . kind, TyAssocConstItem ( ..) | StrippedItem ( box TyAssocConstItem ( ..) ) )
556+ pub ( crate ) fn is_required_associated_const ( & self ) -> bool {
557+ matches ! ( self . kind, RequiredAssocConstItem ( ..) | StrippedItem ( box RequiredAssocConstItem ( ..) ) )
558558 }
559559 pub ( crate ) fn is_method ( & self ) -> bool {
560560 self . type_ ( ) == ItemType :: Method
@@ -701,8 +701,12 @@ impl Item {
701701 // Variants always inherit visibility
702702 VariantItem ( ..) | ImplItem ( ..) => return None ,
703703 // Trait items inherit the trait's visibility
704- AssocConstItem ( ..) | TyAssocConstItem ( ..) | AssocTypeItem ( ..) | TyAssocTypeItem ( ..)
705- | TyMethodItem ( ..) | MethodItem ( ..) => {
704+ AssocConstItem ( ..)
705+ | RequiredAssocConstItem ( ..)
706+ | AssocTypeItem ( ..)
707+ | TyAssocTypeItem ( ..)
708+ | TyMethodItem ( ..)
709+ | MethodItem ( ..) => {
706710 let assoc_item = tcx. associated_item ( def_id) ;
707711 let is_trait_item = match assoc_item. container {
708712 ty:: AssocItemContainer :: Trait => true ,
@@ -864,7 +868,7 @@ pub(crate) enum ItemKind {
864868 ProcMacroItem ( ProcMacro ) ,
865869 PrimitiveItem ( PrimitiveType ) ,
866870 /// A required associated constant in a trait declaration.
867- TyAssocConstItem ( Generics , Box < Type > ) ,
871+ RequiredAssocConstItem ( Generics , Box < Type > ) ,
868872 ConstantItem ( Box < Constant > ) ,
869873 /// An associated constant in a trait impl or a provided one in a trait declaration.
870874 AssocConstItem ( Box < Constant > ) ,
@@ -911,7 +915,7 @@ impl ItemKind {
911915 | MacroItem ( _)
912916 | ProcMacroItem ( _)
913917 | PrimitiveItem ( _)
914- | TyAssocConstItem ( ..)
918+ | RequiredAssocConstItem ( ..)
915919 | AssocConstItem ( ..)
916920 | TyAssocTypeItem ( ..)
917921 | AssocTypeItem ( ..)
0 commit comments