@@ -177,7 +177,7 @@ pub(crate) struct NoCoreParser;
177177
178178impl < S : Stage > NoArgsAttributeParser < S > for NoCoreParser {
179179 const PATH : & [ Symbol ] = & [ sym:: no_core] ;
180- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
180+ const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
181181 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
182182 const CREATE : fn ( Span ) -> AttributeKind = AttributeKind :: NoCore ;
183183}
@@ -247,7 +247,7 @@ pub(crate) struct PanicRuntimeParser;
247247
248248impl < S : Stage > NoArgsAttributeParser < S > for PanicRuntimeParser {
249249 const PATH : & [ Symbol ] = & [ sym:: panic_runtime] ;
250- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
250+ const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
251251 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
252252 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: PanicRuntime ;
253253}
@@ -256,7 +256,7 @@ pub(crate) struct NeedsPanicRuntimeParser;
256256
257257impl < S : Stage > NoArgsAttributeParser < S > for NeedsPanicRuntimeParser {
258258 const PATH : & [ Symbol ] = & [ sym:: needs_panic_runtime] ;
259- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
259+ const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
260260 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
261261 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: NeedsPanicRuntime ;
262262}
@@ -265,7 +265,7 @@ pub(crate) struct ProfilerRuntimeParser;
265265
266266impl < S : Stage > NoArgsAttributeParser < S > for ProfilerRuntimeParser {
267267 const PATH : & [ Symbol ] = & [ sym:: profiler_runtime] ;
268- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
268+ const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
269269 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
270270 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: ProfilerRuntime ;
271271}
@@ -292,7 +292,7 @@ pub(crate) struct RustcNoImplicitBoundsParser;
292292
293293impl < S : Stage > NoArgsAttributeParser < S > for RustcNoImplicitBoundsParser {
294294 const PATH : & [ Symbol ] = & [ sym:: rustc_no_implicit_bounds] ;
295- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
295+ const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
296296 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
297297 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: RustcNoImplicitBounds ;
298298}
@@ -301,7 +301,7 @@ pub(crate) struct DefaultLibAllocatorParser;
301301
302302impl < S : Stage > NoArgsAttributeParser < S > for DefaultLibAllocatorParser {
303303 const PATH : & [ Symbol ] = & [ sym:: default_lib_allocator] ;
304- const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Warn ;
304+ const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
305305 const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
306306 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: DefaultLibAllocator ;
307307}
0 commit comments