@@ -9,8 +9,8 @@ use crate::parser::ArgParser;
99use crate :: target_checking:: Policy :: { Allow , Warn } ;
1010use crate :: target_checking:: { ALL_TARGETS , AllowedTargets } ;
1111
12- pub ( crate ) struct SkipDuringMethodDispatchParser ;
13- impl < S : Stage > SingleAttributeParser < S > for SkipDuringMethodDispatchParser {
12+ pub ( crate ) struct RustcSkipDuringMethodDispatchParser ;
13+ impl < S : Stage > SingleAttributeParser < S > for RustcSkipDuringMethodDispatchParser {
1414 const PATH : & [ Symbol ] = & [ sym:: rustc_skip_during_method_dispatch] ;
1515 const ATTRIBUTE_ORDER : AttributeOrder = AttributeOrder :: KeepInnermost ;
1616 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
@@ -58,8 +58,8 @@ impl<S: Stage> SingleAttributeParser<S> for SkipDuringMethodDispatchParser {
5858 }
5959}
6060
61- pub ( crate ) struct ParenSugarParser ;
62- impl < S : Stage > NoArgsAttributeParser < S > for ParenSugarParser {
61+ pub ( crate ) struct RustcParenSugarParser ;
62+ impl < S : Stage > NoArgsAttributeParser < S > for RustcParenSugarParser {
6363 const PATH : & [ Symbol ] = & [ sym:: rustc_paren_sugar] ;
6464 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
6565 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
@@ -81,16 +81,16 @@ impl<S: Stage> NoArgsAttributeParser<S> for MarkerParser {
8181 const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: Marker ;
8282}
8383
84- pub ( crate ) struct DenyExplicitImplParser ;
85- impl < S : Stage > NoArgsAttributeParser < S > for DenyExplicitImplParser {
84+ pub ( crate ) struct RustcDenyExplicitImplParser ;
85+ impl < S : Stage > NoArgsAttributeParser < S > for RustcDenyExplicitImplParser {
8686 const PATH : & [ Symbol ] = & [ sym:: rustc_deny_explicit_impl] ;
8787 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
8888 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
8989 const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcDenyExplicitImpl ;
9090}
9191
92- pub ( crate ) struct DynIncompatibleTraitParser ;
93- impl < S : Stage > NoArgsAttributeParser < S > for DynIncompatibleTraitParser {
92+ pub ( crate ) struct RustcDynIncompatibleTraitParser ;
93+ impl < S : Stage > NoArgsAttributeParser < S > for RustcDynIncompatibleTraitParser {
9494 const PATH : & [ Symbol ] = & [ sym:: rustc_dyn_incompatible_trait] ;
9595 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
9696 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
@@ -99,16 +99,16 @@ impl<S: Stage> NoArgsAttributeParser<S> for DynIncompatibleTraitParser {
9999
100100// Specialization
101101
102- pub ( crate ) struct SpecializationTraitParser ;
103- impl < S : Stage > NoArgsAttributeParser < S > for SpecializationTraitParser {
102+ pub ( crate ) struct RustcSpecializationTraitParser ;
103+ impl < S : Stage > NoArgsAttributeParser < S > for RustcSpecializationTraitParser {
104104 const PATH : & [ Symbol ] = & [ sym:: rustc_specialization_trait] ;
105105 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
106106 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
107107 const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcSpecializationTrait ;
108108}
109109
110- pub ( crate ) struct UnsafeSpecializationMarkerParser ;
111- impl < S : Stage > NoArgsAttributeParser < S > for UnsafeSpecializationMarkerParser {
110+ pub ( crate ) struct RustcUnsafeSpecializationMarkerParser ;
111+ impl < S : Stage > NoArgsAttributeParser < S > for RustcUnsafeSpecializationMarkerParser {
112112 const PATH : & [ Symbol ] = & [ sym:: rustc_unsafe_specialization_marker] ;
113113 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
114114 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
@@ -117,16 +117,16 @@ impl<S: Stage> NoArgsAttributeParser<S> for UnsafeSpecializationMarkerParser {
117117
118118// Coherence
119119
120- pub ( crate ) struct CoinductiveParser ;
121- impl < S : Stage > NoArgsAttributeParser < S > for CoinductiveParser {
120+ pub ( crate ) struct RustcCoinductiveParser ;
121+ impl < S : Stage > NoArgsAttributeParser < S > for RustcCoinductiveParser {
122122 const PATH : & [ Symbol ] = & [ sym:: rustc_coinductive] ;
123123 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
124124 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Trait ) ] ) ;
125125 const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcCoinductive ;
126126}
127127
128- pub ( crate ) struct AllowIncoherentImplParser ;
129- impl < S : Stage > NoArgsAttributeParser < S > for AllowIncoherentImplParser {
128+ pub ( crate ) struct RustcAllowIncoherentImplParser ;
129+ impl < S : Stage > NoArgsAttributeParser < S > for RustcAllowIncoherentImplParser {
130130 const PATH : & [ Symbol ] = & [ sym:: rustc_allow_incoherent_impl] ;
131131 const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
132132 const ALLOWED_TARGETS : AllowedTargets =
0 commit comments