]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs.stderr
Rollup merge of #101675 - beetrees:set-times-no-panic, r=joshtriplett
[rust.git] / src / test / ui / feature-gates / issue-43106-gating-of-builtin-attrs.stderr
1 warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
2   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:400:17
3    |
4 LL |     mod inner { #![macro_escape] }
5    |                 ^^^^^^^^^^^^^^^^
6    |
7    = help: try an outer attribute: `#[macro_use]`
8
9 warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
10   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:397:1
11    |
12 LL | #[macro_escape]
13    | ^^^^^^^^^^^^^^^
14
15 warning: unknown lint: `x5400`
16   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:46:9
17    |
18 LL | #![warn(x5400)]
19    |         ^^^^^
20    |
21 note: the lint level is defined here
22   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:40:28
23    |
24 LL | #![warn(unused_attributes, unknown_lints)]
25    |                            ^^^^^^^^^^^^^
26
27 warning: unknown lint: `x5300`
28   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:47:10
29    |
30 LL | #![allow(x5300)]
31    |          ^^^^^
32
33 warning: unknown lint: `x5200`
34   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:48:11
35    |
36 LL | #![forbid(x5200)]
37    |           ^^^^^
38
39 warning: unknown lint: `x5100`
40   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:49:9
41    |
42 LL | #![deny(x5100)]
43    |         ^^^^^
44
45 warning: unknown lint: `x5400`
46   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:105:8
47    |
48 LL | #[warn(x5400)]
49    |        ^^^^^
50
51 warning: unknown lint: `x5400`
52   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:108:25
53    |
54 LL |     mod inner { #![warn(x5400)] }
55    |                         ^^^^^
56
57 warning: unknown lint: `x5400`
58   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:111:12
59    |
60 LL |     #[warn(x5400)] fn f() { }
61    |            ^^^^^
62
63 warning: unknown lint: `x5400`
64   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:114:12
65    |
66 LL |     #[warn(x5400)] struct S;
67    |            ^^^^^
68
69 warning: unknown lint: `x5400`
70   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:117:12
71    |
72 LL |     #[warn(x5400)] type T = S;
73    |            ^^^^^
74
75 warning: unknown lint: `x5400`
76   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:120:12
77    |
78 LL |     #[warn(x5400)] impl S { }
79    |            ^^^^^
80
81 warning: unknown lint: `x5300`
82   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:124:9
83    |
84 LL | #[allow(x5300)]
85    |         ^^^^^
86
87 warning: unknown lint: `x5300`
88   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:127:26
89    |
90 LL |     mod inner { #![allow(x5300)] }
91    |                          ^^^^^
92
93 warning: unknown lint: `x5300`
94   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:130:13
95    |
96 LL |     #[allow(x5300)] fn f() { }
97    |             ^^^^^
98
99 warning: unknown lint: `x5300`
100   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:133:13
101    |
102 LL |     #[allow(x5300)] struct S;
103    |             ^^^^^
104
105 warning: unknown lint: `x5300`
106   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:136:13
107    |
108 LL |     #[allow(x5300)] type T = S;
109    |             ^^^^^
110
111 warning: unknown lint: `x5300`
112   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:139:13
113    |
114 LL |     #[allow(x5300)] impl S { }
115    |             ^^^^^
116
117 warning: unknown lint: `x5200`
118   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:143:10
119    |
120 LL | #[forbid(x5200)]
121    |          ^^^^^
122
123 warning: unknown lint: `x5200`
124   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:146:27
125    |
126 LL |     mod inner { #![forbid(x5200)] }
127    |                           ^^^^^
128
129 warning: unknown lint: `x5200`
130   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:149:14
131    |
132 LL |     #[forbid(x5200)] fn f() { }
133    |              ^^^^^
134
135 warning: unknown lint: `x5200`
136   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:152:14
137    |
138 LL |     #[forbid(x5200)] struct S;
139    |              ^^^^^
140
141 warning: unknown lint: `x5200`
142   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:155:14
143    |
144 LL |     #[forbid(x5200)] type T = S;
145    |              ^^^^^
146
147 warning: unknown lint: `x5200`
148   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:158:14
149    |
150 LL |     #[forbid(x5200)] impl S { }
151    |              ^^^^^
152
153 warning: unknown lint: `x5100`
154   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:162:8
155    |
156 LL | #[deny(x5100)]
157    |        ^^^^^
158
159 warning: unknown lint: `x5100`
160   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:165:25
161    |
162 LL |     mod inner { #![deny(x5100)] }
163    |                         ^^^^^
164
165 warning: unknown lint: `x5100`
166   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:168:12
167    |
168 LL |     #[deny(x5100)] fn f() { }
169    |            ^^^^^
170
171 warning: unknown lint: `x5100`
172   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:171:12
173    |
174 LL |     #[deny(x5100)] struct S;
175    |            ^^^^^
176
177 warning: unknown lint: `x5100`
178   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:174:12
179    |
180 LL |     #[deny(x5100)] type T = S;
181    |            ^^^^^
182
183 warning: unknown lint: `x5100`
184   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:177:12
185    |
186 LL |     #[deny(x5100)] impl S { }
187    |            ^^^^^
188
189 warning: use of deprecated attribute `crate_id`: no longer used.
190   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:84:1
191    |
192 LL | #![crate_id = "10"]
193    | ^^^^^^^^^^^^^^^^^^^ help: remove this attribute
194    |
195    = note: `#[warn(deprecated)]` on by default
196
197 warning: use of deprecated attribute `no_start`: no longer used.
198   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:94:1
199    |
200 LL | #![no_start]
201    | ^^^^^^^^^^^^ help: remove this attribute
202
203 warning: `#[macro_export]` only has an effect on macro definitions
204   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:198:1
205    |
206 LL | #[macro_export]
207    | ^^^^^^^^^^^^^^^
208    |
209 note: the lint level is defined here
210   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:40:9
211    |
212 LL | #![warn(unused_attributes, unknown_lints)]
213    |         ^^^^^^^^^^^^^^^^^
214
215 warning: `#[automatically_derived]` only has an effect on implementation blocks
216   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:266:1
217    |
218 LL | #[automatically_derived]
219    | ^^^^^^^^^^^^^^^^^^^^^^^^
220
221 warning: attribute should be applied to a free function, impl method or static
222   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:284:1
223    |
224 LL |   #[no_mangle]
225    |   ^^^^^^^^^^^^
226 ...
227 LL | / mod no_mangle {
228 LL | |
229 LL | |     mod inner { #![no_mangle] }
230 LL | |
231 ...  |
232 LL | |     }
233 LL | | }
234    | |_- not a free function, impl method or static
235    |
236    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
237
238 warning: `#[should_panic]` only has an effect on functions
239   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:324:1
240    |
241 LL | #[should_panic]
242    | ^^^^^^^^^^^^^^^
243
244 warning: `#[ignore]` only has an effect on functions
245   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:342:1
246    |
247 LL | #[ignore]
248    | ^^^^^^^^^
249
250 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
251   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:377:1
252    |
253 LL | #[reexport_test_harness_main = "2900"]
254    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
255
256 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
257   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:417:1
258    |
259 LL | #[no_std]
260    | ^^^^^^^^^
261
262 warning: attribute should be applied to a function definition
263   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:453:1
264    |
265 LL |   #[cold]
266    |   ^^^^^^^
267 ...
268 LL | / mod cold {
269 LL | |
270 LL | |
271 LL | |     mod inner { #![cold] }
272 ...  |
273 LL | |
274 LL | | }
275    | |_- not a function definition
276    |
277    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
278
279 warning: attribute should be applied to a foreign function or static
280   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:482:1
281    |
282 LL |   #[link_name = "1900"]
283    |   ^^^^^^^^^^^^^^^^^^^^^
284 ...
285 LL | / mod link_name {
286 LL | |
287 LL | |
288 LL | |     #[link_name = "1900"]
289 ...  |
290 LL | |
291 LL | | }
292    | |_- not a foreign function or static
293    |
294    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
295
296 warning: attribute should be applied to a function or static
297   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:521:1
298    |
299 LL |   #[link_section = "1800"]
300    |   ^^^^^^^^^^^^^^^^^^^^^^^^
301 ...
302 LL | / mod link_section {
303 LL | |
304 LL | |
305 LL | |     mod inner { #![link_section="1800"] }
306 ...  |
307 LL | |
308 LL | | }
309    | |_- not a function or static
310    |
311    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
312
313 warning: attribute should be applied to an `extern` block with non-Rust ABI
314   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:553:1
315    |
316 LL |   #[link()]
317    |   ^^^^^^^^^
318 ...
319 LL | / mod link {
320 LL | |
321 LL | |
322 LL | |     mod inner { #![link()] }
323 ...  |
324 LL | |
325 LL | | }
326    | |_- not an `extern` block
327    |
328    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
329
330 warning: `#[must_use]` has no effect when applied to a module
331   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:604:1
332    |
333 LL | #[must_use]
334    | ^^^^^^^^^^^
335
336 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
337   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:617:1
338    |
339 LL | #[windows_subsystem = "windows"]
340    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
341
342 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
343   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:638:1
344    |
345 LL | #[crate_name = "0900"]
346    | ^^^^^^^^^^^^^^^^^^^^^^
347
348 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
349   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:657:1
350    |
351 LL | #[crate_type = "0800"]
352    | ^^^^^^^^^^^^^^^^^^^^^^
353
354 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
355   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:676:1
356    |
357 LL | #[feature(x0600)]
358    | ^^^^^^^^^^^^^^^^^
359
360 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
361   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:696:1
362    |
363 LL | #[no_main]
364    | ^^^^^^^^^^
365
366 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
367   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:715:1
368    |
369 LL | #[no_builtins]
370    | ^^^^^^^^^^^^^^
371
372 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
373   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:734:1
374    |
375 LL | #[recursion_limit="0200"]
376    | ^^^^^^^^^^^^^^^^^^^^^^^^^
377
378 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
379   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:753:1
380    |
381 LL | #[type_length_limit="0100"]
382    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
383
384 warning: `#[should_panic]` only has an effect on functions
385   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:53:1
386    |
387 LL | #![should_panic]
388    | ^^^^^^^^^^^^^^^^
389
390 warning: `#[ignore]` only has an effect on functions
391   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:54:1
392    |
393 LL | #![ignore]
394    | ^^^^^^^^^^
395
396 warning: `#[proc_macro_derive]` only has an effect on functions
397   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:60:1
398    |
399 LL | #![proc_macro_derive()]
400    | ^^^^^^^^^^^^^^^^^^^^^^^
401
402 warning: attribute should be applied to a function definition
403   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:62:1
404    |
405 LL | #![cold]
406    | ^^^^^^^^
407    |
408    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
409
410 warning: attribute should be applied to an `extern` block with non-Rust ABI
411   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:64:1
412    |
413 LL | #![link()]
414    | ^^^^^^^^^^
415    |
416    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
417
418 warning: attribute should be applied to a foreign function or static
419   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:66:1
420    |
421 LL | #![link_name = "1900"]
422    | ^^^^^^^^^^^^^^^^^^^^^^
423    |
424    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
425
426 warning: attribute should be applied to a function or static
427   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:69:1
428    |
429 LL | #![link_section = "1800"]
430    | ^^^^^^^^^^^^^^^^^^^^^^^^^
431    |
432    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
433
434 warning: `#[must_use]` has no effect when applied to a module
435   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:72:1
436    |
437 LL | #![must_use]
438    | ^^^^^^^^^^^^
439
440 warning: `#[macro_use]` only has an effect on `extern crate` and modules
441   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:185:5
442    |
443 LL |     #[macro_use] fn f() { }
444    |     ^^^^^^^^^^^^
445
446 warning: `#[macro_use]` only has an effect on `extern crate` and modules
447   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:188:5
448    |
449 LL |     #[macro_use] struct S;
450    |     ^^^^^^^^^^^^
451
452 warning: `#[macro_use]` only has an effect on `extern crate` and modules
453   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:191:5
454    |
455 LL |     #[macro_use] type T = S;
456    |     ^^^^^^^^^^^^
457
458 warning: `#[macro_use]` only has an effect on `extern crate` and modules
459   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:194:5
460    |
461 LL |     #[macro_use] impl S { }
462    |     ^^^^^^^^^^^^
463
464 warning: `#[macro_export]` only has an effect on macro definitions
465   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:201:17
466    |
467 LL |     mod inner { #![macro_export] }
468    |                 ^^^^^^^^^^^^^^^^
469
470 warning: `#[macro_export]` only has an effect on macro definitions
471   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:204:5
472    |
473 LL |     #[macro_export] fn f() { }
474    |     ^^^^^^^^^^^^^^^
475
476 warning: `#[macro_export]` only has an effect on macro definitions
477   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:207:5
478    |
479 LL |     #[macro_export] struct S;
480    |     ^^^^^^^^^^^^^^^
481
482 warning: `#[macro_export]` only has an effect on macro definitions
483   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:210:5
484    |
485 LL |     #[macro_export] type T = S;
486    |     ^^^^^^^^^^^^^^^
487
488 warning: `#[macro_export]` only has an effect on macro definitions
489   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:213:5
490    |
491 LL |     #[macro_export] impl S { }
492    |     ^^^^^^^^^^^^^^^
493
494 warning: `#[path]` only has an effect on modules
495   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:253:5
496    |
497 LL |     #[path = "3800"] fn f() { }
498    |     ^^^^^^^^^^^^^^^^
499
500 warning: `#[path]` only has an effect on modules
501   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:256:5
502    |
503 LL |     #[path = "3800"]  struct S;
504    |     ^^^^^^^^^^^^^^^^
505
506 warning: `#[path]` only has an effect on modules
507   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:259:5
508    |
509 LL |     #[path = "3800"] type T = S;
510    |     ^^^^^^^^^^^^^^^^
511
512 warning: `#[path]` only has an effect on modules
513   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:262:5
514    |
515 LL |     #[path = "3800"] impl S { }
516    |     ^^^^^^^^^^^^^^^^
517
518 warning: `#[automatically_derived]` only has an effect on implementation blocks
519   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:269:17
520    |
521 LL |     mod inner { #![automatically_derived] }
522    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
523
524 warning: `#[automatically_derived]` only has an effect on implementation blocks
525   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:272:5
526    |
527 LL |     #[automatically_derived] fn f() { }
528    |     ^^^^^^^^^^^^^^^^^^^^^^^^
529
530 warning: `#[automatically_derived]` only has an effect on implementation blocks
531   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:275:5
532    |
533 LL |     #[automatically_derived] struct S;
534    |     ^^^^^^^^^^^^^^^^^^^^^^^^
535
536 warning: `#[automatically_derived]` only has an effect on implementation blocks
537   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:278:5
538    |
539 LL |     #[automatically_derived] type T = S;
540    |     ^^^^^^^^^^^^^^^^^^^^^^^^
541
542 warning: attribute should be applied to a free function, impl method or static
543   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:289:17
544    |
545 LL |     mod inner { #![no_mangle] }
546    |     ------------^^^^^^^^^^^^^-- not a free function, impl method or static
547    |
548    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
549
550 warning: attribute should be applied to a free function, impl method or static
551   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:296:5
552    |
553 LL |     #[no_mangle] struct S;
554    |     ^^^^^^^^^^^^ --------- not a free function, impl method or static
555    |
556    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
557
558 warning: attribute should be applied to a free function, impl method or static
559   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:301:5
560    |
561 LL |     #[no_mangle] type T = S;
562    |     ^^^^^^^^^^^^ ----------- not a free function, impl method or static
563    |
564    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
565
566 warning: attribute should be applied to a free function, impl method or static
567   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:306:5
568    |
569 LL |     #[no_mangle] impl S { }
570    |     ^^^^^^^^^^^^ ---------- not a free function, impl method or static
571    |
572    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
573
574 warning: attribute should be applied to a free function, impl method or static
575   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:312:9
576    |
577 LL |         #[no_mangle] fn foo();
578    |         ^^^^^^^^^^^^ --------- not a free function, impl method or static
579    |
580    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
581
582 warning: attribute should be applied to a free function, impl method or static
583   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:317:9
584    |
585 LL |         #[no_mangle] fn bar() {}
586    |         ^^^^^^^^^^^^ ----------- not a free function, impl method or static
587    |
588    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
589
590 warning: `#[should_panic]` only has an effect on functions
591   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:327:17
592    |
593 LL |     mod inner { #![should_panic] }
594    |                 ^^^^^^^^^^^^^^^^
595
596 warning: `#[should_panic]` only has an effect on functions
597   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:332:5
598    |
599 LL |     #[should_panic] struct S;
600    |     ^^^^^^^^^^^^^^^
601
602 warning: `#[should_panic]` only has an effect on functions
603   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:335:5
604    |
605 LL |     #[should_panic] type T = S;
606    |     ^^^^^^^^^^^^^^^
607
608 warning: `#[should_panic]` only has an effect on functions
609   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:338:5
610    |
611 LL |     #[should_panic] impl S { }
612    |     ^^^^^^^^^^^^^^^
613
614 warning: `#[ignore]` only has an effect on functions
615   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:345:17
616    |
617 LL |     mod inner { #![ignore] }
618    |                 ^^^^^^^^^^
619
620 warning: `#[ignore]` only has an effect on functions
621   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:350:5
622    |
623 LL |     #[ignore] struct S;
624    |     ^^^^^^^^^
625
626 warning: `#[ignore]` only has an effect on functions
627   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:353:5
628    |
629 LL |     #[ignore] type T = S;
630    |     ^^^^^^^^^
631
632 warning: `#[ignore]` only has an effect on functions
633   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:356:5
634    |
635 LL |     #[ignore] impl S { }
636    |     ^^^^^^^^^
637
638 warning: `#[no_implicit_prelude]` only has an effect on modules
639   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:364:5
640    |
641 LL |     #[no_implicit_prelude] fn f() { }
642    |     ^^^^^^^^^^^^^^^^^^^^^^
643
644 warning: `#[no_implicit_prelude]` only has an effect on modules
645   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:367:5
646    |
647 LL |     #[no_implicit_prelude] struct S;
648    |     ^^^^^^^^^^^^^^^^^^^^^^
649
650 warning: `#[no_implicit_prelude]` only has an effect on modules
651   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:370:5
652    |
653 LL |     #[no_implicit_prelude] type T = S;
654    |     ^^^^^^^^^^^^^^^^^^^^^^
655
656 warning: `#[no_implicit_prelude]` only has an effect on modules
657   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:373:5
658    |
659 LL |     #[no_implicit_prelude] impl S { }
660    |     ^^^^^^^^^^^^^^^^^^^^^^
661
662 warning: crate-level attribute should be in the root module
663   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:380:17
664    |
665 LL |     mod inner { #![reexport_test_harness_main="2900"] }
666    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
667
668 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
669   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:383:5
670    |
671 LL |     #[reexport_test_harness_main = "2900"] fn f() { }
672    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
673
674 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
675   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:386:5
676    |
677 LL |     #[reexport_test_harness_main = "2900"] struct S;
678    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
679
680 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
681   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:389:5
682    |
683 LL |     #[reexport_test_harness_main = "2900"] type T = S;
684    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
685
686 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
687   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:392:5
688    |
689 LL |     #[reexport_test_harness_main = "2900"] impl S { }
690    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
691
692 warning: `#[macro_escape]` only has an effect on `extern crate` and modules
693   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:404:5
694    |
695 LL |     #[macro_escape] fn f() { }
696    |     ^^^^^^^^^^^^^^^
697
698 warning: `#[macro_escape]` only has an effect on `extern crate` and modules
699   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:407:5
700    |
701 LL |     #[macro_escape] struct S;
702    |     ^^^^^^^^^^^^^^^
703
704 warning: `#[macro_escape]` only has an effect on `extern crate` and modules
705   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:410:5
706    |
707 LL |     #[macro_escape] type T = S;
708    |     ^^^^^^^^^^^^^^^
709
710 warning: `#[macro_escape]` only has an effect on `extern crate` and modules
711   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:413:5
712    |
713 LL |     #[macro_escape] impl S { }
714    |     ^^^^^^^^^^^^^^^
715
716 warning: crate-level attribute should be in the root module
717   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:420:17
718    |
719 LL |     mod inner { #![no_std] }
720    |                 ^^^^^^^^^^
721
722 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
723   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:423:5
724    |
725 LL |     #[no_std] fn f() { }
726    |     ^^^^^^^^^
727
728 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
729   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:426:5
730    |
731 LL |     #[no_std] struct S;
732    |     ^^^^^^^^^
733
734 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
735   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:429:5
736    |
737 LL |     #[no_std] type T = S;
738    |     ^^^^^^^^^
739
740 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
741   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:432:5
742    |
743 LL |     #[no_std] impl S { }
744    |     ^^^^^^^^^
745
746 warning: attribute should be applied to a function definition
747   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:459:17
748    |
749 LL |     mod inner { #![cold] }
750    |     ------------^^^^^^^^-- not a function definition
751    |
752    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
753
754 warning: attribute should be applied to a function definition
755   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:466:5
756    |
757 LL |     #[cold] struct S;
758    |     ^^^^^^^ --------- not a function definition
759    |
760    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
761
762 warning: attribute should be applied to a function definition
763   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:471:5
764    |
765 LL |     #[cold] type T = S;
766    |     ^^^^^^^ ----------- not a function definition
767    |
768    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
769
770 warning: attribute should be applied to a function definition
771   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:476:5
772    |
773 LL |     #[cold] impl S { }
774    |     ^^^^^^^ ---------- not a function definition
775    |
776    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
777
778 warning: attribute should be applied to a foreign function or static
779   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:488:5
780    |
781 LL |     #[link_name = "1900"]
782    |     ^^^^^^^^^^^^^^^^^^^^^
783 ...
784 LL |     extern "C" { }
785    |     -------------- not a foreign function or static
786    |
787    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
788 help: try `#[link(name = "1900")]` instead
789   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:488:5
790    |
791 LL |     #[link_name = "1900"]
792    |     ^^^^^^^^^^^^^^^^^^^^^
793
794 warning: attribute should be applied to a foreign function or static
795   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:495:17
796    |
797 LL |     mod inner { #![link_name="1900"] }
798    |     ------------^^^^^^^^^^^^^^^^^^^^-- not a foreign function or static
799    |
800    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
801
802 warning: attribute should be applied to a foreign function or static
803   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:500:5
804    |
805 LL |     #[link_name = "1900"] fn f() { }
806    |     ^^^^^^^^^^^^^^^^^^^^^ ---------- not a foreign function or static
807    |
808    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
809
810 warning: attribute should be applied to a foreign function or static
811   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:505:5
812    |
813 LL |     #[link_name = "1900"] struct S;
814    |     ^^^^^^^^^^^^^^^^^^^^^ --------- not a foreign function or static
815    |
816    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
817
818 warning: attribute should be applied to a foreign function or static
819   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:510:5
820    |
821 LL |     #[link_name = "1900"] type T = S;
822    |     ^^^^^^^^^^^^^^^^^^^^^ ----------- not a foreign function or static
823    |
824    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
825
826 warning: attribute should be applied to a foreign function or static
827   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:515:5
828    |
829 LL |     #[link_name = "1900"] impl S { }
830    |     ^^^^^^^^^^^^^^^^^^^^^ ---------- not a foreign function or static
831    |
832    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
833
834 warning: attribute should be applied to a function or static
835   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:527:17
836    |
837 LL |     mod inner { #![link_section="1800"] }
838    |     ------------^^^^^^^^^^^^^^^^^^^^^^^-- not a function or static
839    |
840    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
841
842 warning: attribute should be applied to a function or static
843   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:534:5
844    |
845 LL |     #[link_section = "1800"] struct S;
846    |     ^^^^^^^^^^^^^^^^^^^^^^^^ --------- not a function or static
847    |
848    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
849
850 warning: attribute should be applied to a function or static
851   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:539:5
852    |
853 LL |     #[link_section = "1800"] type T = S;
854    |     ^^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a function or static
855    |
856    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
857
858 warning: attribute should be applied to a function or static
859   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:544:5
860    |
861 LL |     #[link_section = "1800"] impl S { }
862    |     ^^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a function or static
863    |
864    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
865
866 warning: attribute should be applied to an `extern` block with non-Rust ABI
867   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:559:17
868    |
869 LL |     mod inner { #![link()] }
870    |     ------------^^^^^^^^^^-- not an `extern` block
871    |
872    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
873
874 warning: attribute should be applied to an `extern` block with non-Rust ABI
875   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:564:5
876    |
877 LL |     #[link()] fn f() { }
878    |     ^^^^^^^^^ ---------- not an `extern` block
879    |
880    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
881
882 warning: attribute should be applied to an `extern` block with non-Rust ABI
883   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:569:5
884    |
885 LL |     #[link()] struct S;
886    |     ^^^^^^^^^ --------- not an `extern` block
887    |
888    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
889
890 warning: attribute should be applied to an `extern` block with non-Rust ABI
891   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:574:5
892    |
893 LL |     #[link()] type T = S;
894    |     ^^^^^^^^^ ----------- not an `extern` block
895    |
896    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
897
898 warning: attribute should be applied to an `extern` block with non-Rust ABI
899   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:579:5
900    |
901 LL |     #[link()] impl S { }
902    |     ^^^^^^^^^ ---------- not an `extern` block
903    |
904    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
905
906 warning: attribute should be applied to an `extern` block with non-Rust ABI
907   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:584:5
908    |
909 LL |     #[link()] extern "Rust" {}
910    |     ^^^^^^^^^
911    |
912    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
913
914 warning: `#[must_use]` has no effect when applied to a module
915   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:606:17
916    |
917 LL |     mod inner { #![must_use] }
918    |                 ^^^^^^^^^^^^
919
920 warning: `#[must_use]` has no effect when applied to a type alias
921   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:612:5
922    |
923 LL |     #[must_use] type T = S;
924    |     ^^^^^^^^^^^
925
926 warning: `#[must_use]` has no effect when applied to an implementation block
927   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:614:5
928    |
929 LL |     #[must_use] impl S { }
930    |     ^^^^^^^^^^^
931
932 warning: crate-level attribute should be in the root module
933   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:620:17
934    |
935 LL |     mod inner { #![windows_subsystem="windows"] }
936    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
937
938 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
939   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:623:5
940    |
941 LL |     #[windows_subsystem = "windows"] fn f() { }
942    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
943
944 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
945   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:626:5
946    |
947 LL |     #[windows_subsystem = "windows"] struct S;
948    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
949
950 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
951   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:629:5
952    |
953 LL |     #[windows_subsystem = "windows"] type T = S;
954    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
955
956 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
957   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:632:5
958    |
959 LL |     #[windows_subsystem = "windows"] impl S { }
960    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
961
962 warning: crate-level attribute should be in the root module
963   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:641:17
964    |
965 LL |     mod inner { #![crate_name="0900"] }
966    |                 ^^^^^^^^^^^^^^^^^^^^^
967
968 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
969   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:644:5
970    |
971 LL |     #[crate_name = "0900"] fn f() { }
972    |     ^^^^^^^^^^^^^^^^^^^^^^
973
974 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
975   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:647:5
976    |
977 LL |     #[crate_name = "0900"] struct S;
978    |     ^^^^^^^^^^^^^^^^^^^^^^
979
980 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
981   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:650:5
982    |
983 LL |     #[crate_name = "0900"] type T = S;
984    |     ^^^^^^^^^^^^^^^^^^^^^^
985
986 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
987   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:653:5
988    |
989 LL |     #[crate_name = "0900"] impl S { }
990    |     ^^^^^^^^^^^^^^^^^^^^^^
991
992 warning: crate-level attribute should be in the root module
993   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:660:17
994    |
995 LL |     mod inner { #![crate_type="0800"] }
996    |                 ^^^^^^^^^^^^^^^^^^^^^
997
998 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
999   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:663:5
1000    |
1001 LL |     #[crate_type = "0800"] fn f() { }
1002    |     ^^^^^^^^^^^^^^^^^^^^^^
1003
1004 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1005   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:666:5
1006    |
1007 LL |     #[crate_type = "0800"] struct S;
1008    |     ^^^^^^^^^^^^^^^^^^^^^^
1009
1010 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1011   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:669:5
1012    |
1013 LL |     #[crate_type = "0800"] type T = S;
1014    |     ^^^^^^^^^^^^^^^^^^^^^^
1015
1016 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1017   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:672:5
1018    |
1019 LL |     #[crate_type = "0800"] impl S { }
1020    |     ^^^^^^^^^^^^^^^^^^^^^^
1021
1022 warning: crate-level attribute should be in the root module
1023   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:679:17
1024    |
1025 LL |     mod inner { #![feature(x0600)] }
1026    |                 ^^^^^^^^^^^^^^^^^^
1027
1028 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1029   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:682:5
1030    |
1031 LL |     #[feature(x0600)] fn f() { }
1032    |     ^^^^^^^^^^^^^^^^^
1033
1034 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1035   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:685:5
1036    |
1037 LL |     #[feature(x0600)] struct S;
1038    |     ^^^^^^^^^^^^^^^^^
1039
1040 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1041   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:688:5
1042    |
1043 LL |     #[feature(x0600)] type T = S;
1044    |     ^^^^^^^^^^^^^^^^^
1045
1046 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1047   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:691:5
1048    |
1049 LL |     #[feature(x0600)] impl S { }
1050    |     ^^^^^^^^^^^^^^^^^
1051
1052 warning: crate-level attribute should be in the root module
1053   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:699:17
1054    |
1055 LL |     mod inner { #![no_main] }
1056    |                 ^^^^^^^^^^^
1057
1058 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1059   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:702:5
1060    |
1061 LL |     #[no_main] fn f() { }
1062    |     ^^^^^^^^^^
1063
1064 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1065   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:705:5
1066    |
1067 LL |     #[no_main] struct S;
1068    |     ^^^^^^^^^^
1069
1070 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1071   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:708:5
1072    |
1073 LL |     #[no_main] type T = S;
1074    |     ^^^^^^^^^^
1075
1076 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1077   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:711:5
1078    |
1079 LL |     #[no_main] impl S { }
1080    |     ^^^^^^^^^^
1081
1082 warning: crate-level attribute should be in the root module
1083   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:718:17
1084    |
1085 LL |     mod inner { #![no_builtins] }
1086    |                 ^^^^^^^^^^^^^^^
1087
1088 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1089   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:721:5
1090    |
1091 LL |     #[no_builtins] fn f() { }
1092    |     ^^^^^^^^^^^^^^
1093
1094 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1095   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:724:5
1096    |
1097 LL |     #[no_builtins] struct S;
1098    |     ^^^^^^^^^^^^^^
1099
1100 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1101   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:727:5
1102    |
1103 LL |     #[no_builtins] type T = S;
1104    |     ^^^^^^^^^^^^^^
1105
1106 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1107   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:730:5
1108    |
1109 LL |     #[no_builtins] impl S { }
1110    |     ^^^^^^^^^^^^^^
1111
1112 warning: crate-level attribute should be in the root module
1113   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:737:17
1114    |
1115 LL |     mod inner { #![recursion_limit="0200"] }
1116    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
1117
1118 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1119   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:740:5
1120    |
1121 LL |     #[recursion_limit="0200"] fn f() { }
1122    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
1123
1124 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1125   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:743:5
1126    |
1127 LL |     #[recursion_limit="0200"] struct S;
1128    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
1129
1130 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1131   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:746:5
1132    |
1133 LL |     #[recursion_limit="0200"] type T = S;
1134    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
1135
1136 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1137   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:749:5
1138    |
1139 LL |     #[recursion_limit="0200"] impl S { }
1140    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
1141
1142 warning: crate-level attribute should be in the root module
1143   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:756:17
1144    |
1145 LL |     mod inner { #![type_length_limit="0100"] }
1146    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1147
1148 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1149   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:759:5
1150    |
1151 LL |     #[type_length_limit="0100"] fn f() { }
1152    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1153
1154 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1155   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:762:5
1156    |
1157 LL |     #[type_length_limit="0100"] struct S;
1158    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1159
1160 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1161   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:765:5
1162    |
1163 LL |     #[type_length_limit="0100"] type T = S;
1164    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1165
1166 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1167   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:768:5
1168    |
1169 LL |     #[type_length_limit="0100"] impl S { }
1170    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1171
1172 warning: the feature `rust1` has been stable since 1.0.0 and no longer requires an attribute to enable
1173   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:90:12
1174    |
1175 LL | #![feature(rust1)]
1176    |            ^^^^^
1177    |
1178    = note: `#[warn(stable_features)]` on by default
1179
1180 warning: 173 warnings emitted
1181