@@ -108,7 +108,6 @@ pub(crate) struct MoveSizeLimitParser;
108108
109109impl < S : Stage > SingleAttributeParser < S > for MoveSizeLimitParser {
110110 const PATH : & [ Symbol ] = & [ sym:: move_size_limit] ;
111- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
112111 const TEMPLATE : AttributeTemplate = template ! ( NameValueStr : "N" ) ;
113112 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
114113
@@ -154,7 +153,6 @@ pub(crate) struct PatternComplexityLimitParser;
154153
155154impl < S : Stage > SingleAttributeParser < S > for PatternComplexityLimitParser {
156155 const PATH : & [ Symbol ] = & [ sym:: pattern_complexity_limit] ;
157- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
158156 const TEMPLATE : AttributeTemplate = template ! ( NameValueStr : "N" ) ;
159157 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
160158
@@ -177,7 +175,6 @@ pub(crate) struct NoCoreParser;
177175
178176impl < S : Stage > NoArgsAttributeParser < S > for NoCoreParser {
179177 const PATH : & [ Symbol ] = & [ sym:: no_core] ;
180- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
181178 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
182179 const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: NoCore ;
183180}
@@ -204,7 +201,6 @@ pub(crate) struct RustcCoherenceIsCoreParser;
204201
205202impl < S : Stage > NoArgsAttributeParser < S > for RustcCoherenceIsCoreParser {
206203 const PATH : & [ Symbol ] = & [ sym:: rustc_coherence_is_core] ;
207- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
208204 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
209205 const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: RustcCoherenceIsCore ;
210206}
@@ -247,7 +243,6 @@ pub(crate) struct PanicRuntimeParser;
247243
248244impl < S : Stage > NoArgsAttributeParser < S > for PanicRuntimeParser {
249245 const PATH : & [ Symbol ] = & [ sym:: panic_runtime] ;
250- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
251246 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
252247 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: PanicRuntime ;
253248}
@@ -256,7 +251,6 @@ pub(crate) struct NeedsPanicRuntimeParser;
256251
257252impl < S : Stage > NoArgsAttributeParser < S > for NeedsPanicRuntimeParser {
258253 const PATH : & [ Symbol ] = & [ sym:: needs_panic_runtime] ;
259- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
260254 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
261255 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: NeedsPanicRuntime ;
262256}
@@ -265,7 +259,6 @@ pub(crate) struct ProfilerRuntimeParser;
265259
266260impl < S : Stage > NoArgsAttributeParser < S > for ProfilerRuntimeParser {
267261 const PATH : & [ Symbol ] = & [ sym:: profiler_runtime] ;
268- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
269262 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
270263 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: ProfilerRuntime ;
271264}
@@ -283,7 +276,6 @@ pub(crate) struct RustcPreserveUbChecksParser;
283276
284277impl < S : Stage > NoArgsAttributeParser < S > for RustcPreserveUbChecksParser {
285278 const PATH : & [ Symbol ] = & [ sym:: rustc_preserve_ub_checks] ;
286- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
287279 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
288280 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: RustcPreserveUbChecks ;
289281}
@@ -292,7 +284,6 @@ pub(crate) struct RustcNoImplicitBoundsParser;
292284
293285impl < S : Stage > NoArgsAttributeParser < S > for RustcNoImplicitBoundsParser {
294286 const PATH : & [ Symbol ] = & [ sym:: rustc_no_implicit_bounds] ;
295- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
296287 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
297288 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: RustcNoImplicitBounds ;
298289}
@@ -301,7 +292,6 @@ pub(crate) struct DefaultLibAllocatorParser;
301292
302293impl < S : Stage > NoArgsAttributeParser < S > for DefaultLibAllocatorParser {
303294 const PATH : & [ Symbol ] = & [ sym:: default_lib_allocator] ;
304- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
305295 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
306296 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: DefaultLibAllocator ;
307297}
0 commit comments