@@ -92,8 +92,7 @@ pub(crate) struct MoveSizeLimitParser;
9292impl SingleAttributeParser for MoveSizeLimitParser {
9393 const PATH : & [ Symbol ] = & [ sym:: move_size_limit] ;
9494 const TEMPLATE : AttributeTemplate = template ! ( NameValueStr : "N" ) ;
95- const ALLOWED_TARGETS : AllowedTargets =
96- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
95+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
9796 const STABILITY : AttributeStability = unstable ! ( large_assignments) ;
9897
9998 fn convert ( cx : & mut AcceptContext < ' _ , ' _ > , args : & ArgParser ) -> Option < AttributeKind > {
@@ -125,8 +124,7 @@ pub(crate) struct PatternComplexityLimitParser;
125124impl SingleAttributeParser for PatternComplexityLimitParser {
126125 const PATH : & [ Symbol ] = & [ sym:: pattern_complexity_limit] ;
127126 const TEMPLATE : AttributeTemplate = template ! ( NameValueStr : "N" ) ;
128- const ALLOWED_TARGETS : AllowedTargets =
129- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
127+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
130128 const STABILITY : AttributeStability = unstable ! (
131129 rustc_attrs,
132130 "the `#[pattern_complexity_limit]` attribute is used for rustc unit tests"
@@ -143,8 +141,7 @@ pub(crate) struct NoCoreParser;
143141
144142impl NoArgsAttributeParser for NoCoreParser {
145143 const PATH : & [ Symbol ] = & [ sym:: no_core] ;
146- const ALLOWED_TARGETS : AllowedTargets =
147- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
144+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
148145 const STABILITY : AttributeStability = unstable ! ( no_core) ;
149146 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: NoCore ;
150147}
@@ -175,8 +172,7 @@ pub(crate) struct RustcCoherenceIsCoreParser;
175172
176173impl NoArgsAttributeParser for RustcCoherenceIsCoreParser {
177174 const PATH : & [ Symbol ] = & [ sym:: rustc_coherence_is_core] ;
178- const ALLOWED_TARGETS : AllowedTargets =
179- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
175+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
180176 const STABILITY : AttributeStability = unstable ! ( rustc_attrs) ;
181177 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: RustcCoherenceIsCore ;
182178}
@@ -214,8 +210,7 @@ pub(crate) struct PanicRuntimeParser;
214210
215211impl NoArgsAttributeParser for PanicRuntimeParser {
216212 const PATH : & [ Symbol ] = & [ sym:: panic_runtime] ;
217- const ALLOWED_TARGETS : AllowedTargets =
218- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
213+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
219214 const STABILITY : AttributeStability = unstable ! ( panic_runtime) ;
220215 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: PanicRuntime ;
221216}
@@ -224,8 +219,7 @@ pub(crate) struct NeedsPanicRuntimeParser;
224219
225220impl NoArgsAttributeParser for NeedsPanicRuntimeParser {
226221 const PATH : & [ Symbol ] = & [ sym:: needs_panic_runtime] ;
227- const ALLOWED_TARGETS : AllowedTargets =
228- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
222+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
229223 const STABILITY : AttributeStability = unstable ! ( needs_panic_runtime) ;
230224 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: NeedsPanicRuntime ;
231225}
@@ -234,8 +228,7 @@ pub(crate) struct ProfilerRuntimeParser;
234228
235229impl NoArgsAttributeParser for ProfilerRuntimeParser {
236230 const PATH : & [ Symbol ] = & [ sym:: profiler_runtime] ;
237- const ALLOWED_TARGETS : AllowedTargets =
238- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
231+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
239232 const STABILITY : AttributeStability = unstable ! ( profiler_runtime) ;
240233 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: ProfilerRuntime ;
241234}
@@ -255,8 +248,7 @@ pub(crate) struct RustcPreserveUbChecksParser;
255248
256249impl NoArgsAttributeParser for RustcPreserveUbChecksParser {
257250 const PATH : & [ Symbol ] = & [ sym:: rustc_preserve_ub_checks] ;
258- const ALLOWED_TARGETS : AllowedTargets =
259- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
251+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
260252 const STABILITY : AttributeStability = unstable ! ( rustc_attrs) ;
261253 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: RustcPreserveUbChecks ;
262254}
@@ -265,8 +257,7 @@ pub(crate) struct RustcNoImplicitBoundsParser;
265257
266258impl NoArgsAttributeParser for RustcNoImplicitBoundsParser {
267259 const PATH : & [ Symbol ] = & [ sym:: rustc_no_implicit_bounds] ;
268- const ALLOWED_TARGETS : AllowedTargets =
269- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
260+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
270261 const STABILITY : AttributeStability = unstable ! ( rustc_attrs) ;
271262 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: RustcNoImplicitBounds ;
272263}
@@ -275,8 +266,7 @@ pub(crate) struct DefaultLibAllocatorParser;
275266
276267impl NoArgsAttributeParser for DefaultLibAllocatorParser {
277268 const PATH : & [ Symbol ] = & [ sym:: default_lib_allocator] ;
278- const ALLOWED_TARGETS : AllowedTargets =
279- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
269+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
280270 const STABILITY : AttributeStability = unstable ! ( allocator_internals) ;
281271 const CREATE : fn ( Span ) -> AttributeKind = |_| AttributeKind :: DefaultLibAllocator ;
282272}
@@ -333,8 +323,7 @@ impl CombineAttributeParser for RegisterToolParser {
333323 const PATH : & [ Symbol ] = & [ sym:: register_tool] ;
334324 type Item = Ident ;
335325 const CONVERT : ConvertFn < Self :: Item > = |tools, _span| AttributeKind :: RegisterTool ( tools) ;
336- const ALLOWED_TARGETS : AllowedTargets =
337- AllowedTargets :: AllowListWarnRest ( & [ Allow ( Target :: Crate ) ] ) ;
326+ const ALLOWED_TARGETS : AllowedTargets = AllowedTargets :: AllowList ( & [ Allow ( Target :: Crate ) ] ) ;
338327 const TEMPLATE : AttributeTemplate = template ! ( List : & [ "tool1, tool2, ..." ] ) ;
339328 const STABILITY : AttributeStability = unstable ! ( register_tool) ;
340329
0 commit comments