@@ -551,7 +551,7 @@ impl Item {
551
551
matches ! ( self . kind, TyAssocTypeItem ( ..) | StrippedItem ( box TyAssocTypeItem ( ..) ) )
552
552
}
553
553
pub ( crate ) fn is_associated_const ( & self ) -> bool {
554
- matches ! ( self . kind, DefaultAssocConstItem ( ..) | ImplAssocConstItem ( ..) | StrippedItem ( box ( DefaultAssocConstItem ( ..) | ImplAssocConstItem ( ..) ) ) )
554
+ matches ! ( self . kind, ProvidedAssocConstItem ( ..) | ImplAssocConstItem ( ..) | StrippedItem ( box ( ProvidedAssocConstItem ( ..) | ImplAssocConstItem ( ..) ) ) )
555
555
}
556
556
pub ( crate ) fn is_ty_associated_const ( & self ) -> bool {
557
557
matches ! ( self . kind, RequiredAssocConstItem ( ..) | StrippedItem ( box RequiredAssocConstItem ( ..) ) )
@@ -702,7 +702,7 @@ impl Item {
702
702
VariantItem ( ..) | ImplItem ( ..) => return None ,
703
703
// Trait items inherit the trait's visibility
704
704
RequiredAssocConstItem ( ..)
705
- | DefaultAssocConstItem ( ..)
705
+ | ProvidedAssocConstItem ( ..)
706
706
| ImplAssocConstItem ( ..)
707
707
| AssocTypeItem ( ..)
708
708
| TyAssocTypeItem ( ..)
@@ -872,7 +872,7 @@ pub(crate) enum ItemKind {
872
872
RequiredAssocConstItem ( Generics , Box < Type > ) ,
873
873
ConstantItem ( Box < Constant > ) ,
874
874
/// An associated constant in a trait declaration with provided default value.
875
- DefaultAssocConstItem ( Box < Constant > ) ,
875
+ ProvidedAssocConstItem ( Box < Constant > ) ,
876
876
/// An associated constant in an inherent impl or trait impl.
877
877
ImplAssocConstItem ( Box < Constant > ) ,
878
878
/// A required associated type in a trait declaration.
@@ -919,7 +919,7 @@ impl ItemKind {
919
919
| ProcMacroItem ( _)
920
920
| PrimitiveItem ( _)
921
921
| RequiredAssocConstItem ( ..)
922
- | DefaultAssocConstItem ( ..)
922
+ | ProvidedAssocConstItem ( ..)
923
923
| ImplAssocConstItem ( ..)
924
924
| TyAssocTypeItem ( ..)
925
925
| AssocTypeItem ( ..)
0 commit comments