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