@@ -553,8 +553,8 @@ impl Item {
553
553
pub ( crate ) fn is_associated_const ( & self ) -> bool {
554
554
matches ! ( self . kind, AssocConstItem ( ..) | StrippedItem ( box AssocConstItem ( ..) ) )
555
555
}
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 ( ..) ) )
558
558
}
559
559
pub ( crate ) fn is_method ( & self ) -> bool {
560
560
self . type_ ( ) == ItemType :: Method
@@ -701,8 +701,12 @@ impl Item {
701
701
// Variants always inherit visibility
702
702
VariantItem ( ..) | ImplItem ( ..) => return None ,
703
703
// 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 ( ..) => {
706
710
let assoc_item = tcx. associated_item ( def_id) ;
707
711
let is_trait_item = match assoc_item. container {
708
712
ty:: AssocItemContainer :: Trait => true ,
@@ -864,7 +868,7 @@ pub(crate) enum ItemKind {
864
868
ProcMacroItem ( ProcMacro ) ,
865
869
PrimitiveItem ( PrimitiveType ) ,
866
870
/// A required associated constant in a trait declaration.
867
- TyAssocConstItem ( Generics , Box < Type > ) ,
871
+ RequiredAssocConstItem ( Generics , Box < Type > ) ,
868
872
ConstantItem ( Box < Constant > ) ,
869
873
/// An associated constant in a trait impl or a provided one in a trait declaration.
870
874
AssocConstItem ( Box < Constant > ) ,
@@ -911,7 +915,7 @@ impl ItemKind {
911
915
| MacroItem ( _)
912
916
| ProcMacroItem ( _)
913
917
| PrimitiveItem ( _)
914
- | TyAssocConstItem ( ..)
918
+ | RequiredAssocConstItem ( ..)
915
919
| AssocConstItem ( ..)
916
920
| TyAssocTypeItem ( ..)
917
921
| AssocTypeItem ( ..)
0 commit comments