@@ -50,7 +50,11 @@ impl<S: Stage> SingleAttributeParser<S> for SkipDuringMethodDispatchParser {
5050 cx. duplicate_key ( arg. span ( ) , key) ;
5151 }
5252 }
53- Some ( AttributeKind :: SkipDuringMethodDispatch { array, boxed_slice, span : cx. attr_span } )
53+ Some ( AttributeKind :: RustcSkipDuringMethodDispatch {
54+ array,
55+ boxed_slice,
56+ span : cx. attr_span ,
57+ } )
5458 }
5559}
5660
@@ -59,7 +63,7 @@ impl<S: Stage> NoArgsAttributeParser<S> for ParenSugarParser {
5963 const PATH : & [ Symbol ] = & [ sym:: rustc_paren_sugar] ;
6064 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
6165 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
62- const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: ParenSugar ;
66+ const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcParenSugar ;
6367}
6468
6569pub ( crate ) struct TypeConstParser ;
@@ -91,15 +95,15 @@ impl<S: Stage> NoArgsAttributeParser<S> for DenyExplicitImplParser {
9195 const PATH : & [ Symbol ] = & [ sym:: rustc_deny_explicit_impl] ;
9296 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
9397 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
94- const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: DenyExplicitImpl ;
98+ const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcDenyExplicitImpl ;
9599}
96100
97101pub ( crate ) struct DynIncompatibleTraitParser ;
98102impl < S : Stage > NoArgsAttributeParser < S > for DynIncompatibleTraitParser {
99103 const PATH : & [ Symbol ] = & [ sym:: rustc_dyn_incompatible_trait] ;
100104 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
101105 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
102- const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: DynIncompatibleTrait ;
106+ const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcDynIncompatibleTrait ;
103107}
104108
105109// Specialization
@@ -109,15 +113,15 @@ impl<S: Stage> NoArgsAttributeParser<S> for SpecializationTraitParser {
109113 const PATH : & [ Symbol ] = & [ sym:: rustc_specialization_trait] ;
110114 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
111115 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
112- const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: SpecializationTrait ;
116+ const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcSpecializationTrait ;
113117}
114118
115119pub ( crate ) struct UnsafeSpecializationMarkerParser ;
116120impl < S : Stage > NoArgsAttributeParser < S > for UnsafeSpecializationMarkerParser {
117121 const PATH : & [ Symbol ] = & [ sym:: rustc_unsafe_specialization_marker] ;
118122 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
119123 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
120- const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: UnsafeSpecializationMarker ;
124+ const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcUnsafeSpecializationMarker ;
121125}
122126
123127// Coherence
@@ -127,7 +131,7 @@ impl<S: Stage> NoArgsAttributeParser<S> for CoinductiveParser {
127131 const PATH : & [ Symbol ] = & [ sym:: rustc_coinductive] ;
128132 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
129133 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
130- const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: Coinductive ;
134+ const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcCoinductive ;
131135}
132136
133137pub ( crate ) struct AllowIncoherentImplParser ;
@@ -136,7 +140,7 @@ impl<S: Stage> NoArgsAttributeParser<S> for AllowIncoherentImplParser {
136140 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
137141 const ALLOWED_TARGETS : AllowedTargets =
138142 AllowedTargets :: AllowList ( & [ Allow ( Target :: Method ( MethodKind :: Inherent ) ) ] ) ;
139- const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: AllowIncoherentImpl ;
143+ const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcAllowIncoherentImpl ;
140144}
141145
142146pub ( crate ) struct FundamentalParser ;
0 commit comments