1 warning: unknown lint: `x5400`
2 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:53:9
7 note: the lint level is defined here
8 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:40:28
10 LL | #![warn(unused_attributes, unknown_lints)]
13 warning: unknown lint: `x5300`
14 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:54:10
19 warning: unknown lint: `x5200`
20 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:55:11
22 LL | #![forbid(x5200)]
25 warning: unknown lint: `x5100`
26 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:56:9
31 warning: unknown lint: `x5400`
32 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:111:8
37 warning: unknown lint: `x5400`
38 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:114:25
40 LL | mod inner { #![warn(x5400)] }
43 warning: unknown lint: `x5400`
44 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:117:12
46 LL | #[warn(x5400)] fn f() { }
49 warning: unknown lint: `x5400`
50 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:120:12
52 LL | #[warn(x5400)] struct S;
55 warning: unknown lint: `x5400`
56 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:123:12
58 LL | #[warn(x5400)] type T = S;
61 warning: unknown lint: `x5400`
62 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:126:12
64 LL | #[warn(x5400)] impl S { }
67 warning: unknown lint: `x5300`
68 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:130:9
73 warning: unknown lint: `x5300`
74 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:133:26
76 LL | mod inner { #![allow(x5300)] }
79 warning: unknown lint: `x5300`
80 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:136:13
82 LL | #[allow(x5300)] fn f() { }
85 warning: unknown lint: `x5300`
86 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:139:13
88 LL | #[allow(x5300)] struct S;
91 warning: unknown lint: `x5300`
92 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:142:13
94 LL | #[allow(x5300)] type T = S;
97 warning: unknown lint: `x5300`
98 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:145:13
100 LL | #[allow(x5300)] impl S { }
103 warning: unknown lint: `x5200`
104 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:149:10
106 LL | #[forbid(x5200)]
109 warning: unknown lint: `x5200`
110 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:152:27
112 LL | mod inner { #![forbid(x5200)] }
115 warning: unknown lint: `x5200`
116 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:155:14
118 LL | #[forbid(x5200)] fn f() { }
121 warning: unknown lint: `x5200`
122 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:158:14
124 LL | #[forbid(x5200)] struct S;
127 warning: unknown lint: `x5200`
128 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:161:14
130 LL | #[forbid(x5200)] type T = S;
133 warning: unknown lint: `x5200`
134 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:164:14
136 LL | #[forbid(x5200)] impl S { }
139 warning: unknown lint: `x5100`
140 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:168:8
145 warning: unknown lint: `x5100`
146 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:171:25
148 LL | mod inner { #![deny(x5100)] }
151 warning: unknown lint: `x5100`
152 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:174:12
154 LL | #[deny(x5100)] fn f() { }
157 warning: unknown lint: `x5100`
158 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:177:12
160 LL | #[deny(x5100)] struct S;
163 warning: unknown lint: `x5100`
164 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:180:12
166 LL | #[deny(x5100)] type T = S;
169 warning: unknown lint: `x5100`
170 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:183:12
172 LL | #[deny(x5100)] impl S { }
175 warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
176 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:441:17
178 LL | mod inner { #![macro_escape] }
181 = help: try an outer attribute: `#[macro_use]`
183 warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
184 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:438:1
189 warning: use of deprecated attribute `plugin_registrar`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
190 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:228:17
192 LL | mod inner { #![plugin_registrar] }
193 | ^^^^^^^^^^^^^^^^^^^^ help: may be removed in a future compiler version
195 = note: `#[warn(deprecated)]` on by default
197 warning: use of deprecated attribute `plugin_registrar`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
198 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:236:5
200 LL | #[plugin_registrar] struct S;
201 | ^^^^^^^^^^^^^^^^^^^ help: may be removed in a future compiler version
203 warning: use of deprecated attribute `plugin_registrar`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
204 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:241:5
206 LL | #[plugin_registrar] type T = S;
207 | ^^^^^^^^^^^^^^^^^^^ help: may be removed in a future compiler version
209 warning: use of deprecated attribute `plugin_registrar`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
210 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:246:5
212 LL | #[plugin_registrar] impl S { }
213 | ^^^^^^^^^^^^^^^^^^^ help: may be removed in a future compiler version
215 warning: use of deprecated attribute `plugin_registrar`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
216 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:223:1
218 LL | #[plugin_registrar]
219 | ^^^^^^^^^^^^^^^^^^^ help: may be removed in a future compiler version
221 warning: use of deprecated attribute `plugin_registrar`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675
222 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:46:1
224 LL | #![plugin_registrar]
225 | ^^^^^^^^^^^^^^^^^^^^ help: may be removed in a future compiler version
227 warning: use of deprecated attribute `crate_id`: no longer used.
228 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:91:1
230 LL | #![crate_id = "10"]
231 | ^^^^^^^^^^^^^^^^^^^ help: remove this attribute
233 warning: use of deprecated attribute `no_start`: no longer used.
234 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:100:1
237 | ^^^^^^^^^^^^ help: remove this attribute
239 warning: attribute should be applied to a function or static
240 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:333:1
245 LL | / mod no_mangle {
247 LL | | mod inner { #![no_mangle] }
252 | |_- not a function or static
254 note: the lint level is defined here
255 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:40:9
257 LL | #![warn(unused_attributes, unknown_lints)]
259 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
261 warning: attribute should be applied to a function
262 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:500:1
270 LL | | mod inner { #![cold] }
276 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
278 warning: attribute should be applied to a foreign function or static
279 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:529:1
281 LL | #[link_name = "1900"]
282 | ^^^^^^^^^^^^^^^^^^^^^
284 LL | / mod link_name {
287 LL | | #[link_name = "1900"]
291 | |_- not a foreign function or static
293 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
295 warning: attribute should be applied to a function or static
296 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:568:1
298 LL | #[link_section = "1800"]
299 | ^^^^^^^^^^^^^^^^^^^^^^^^
301 LL | / mod link_section {
304 LL | | mod inner { #![link_section="1800"] }
308 | |_- not a function or static
310 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
312 warning: attribute should be applied to a function
313 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:69:1
318 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
320 warning: attribute should be applied to a foreign function or static
321 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:73:1
323 LL | #![link_name = "1900"]
324 | ^^^^^^^^^^^^^^^^^^^^^^
326 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
328 warning: attribute should be applied to a function or static
329 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:76:1
331 LL | #![link_section = "1800"]
332 | ^^^^^^^^^^^^^^^^^^^^^^^^^
334 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
336 warning: attribute should be applied to a function or static
337 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:338:17
339 LL | mod inner { #![no_mangle] }
340 | ------------^^^^^^^^^^^^^-- not a function or static
342 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
344 warning: attribute should be applied to a function or static
345 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:345:5
347 LL | #[no_mangle] struct S;
348 | ^^^^^^^^^^^^ --------- not a function or static
350 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
352 warning: attribute should be applied to a function or static
353 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:350:5
355 LL | #[no_mangle] type T = S;
356 | ^^^^^^^^^^^^ ----------- not a function or static
358 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
360 warning: attribute should be applied to a function or static
361 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:355:5
363 LL | #[no_mangle] impl S { }
364 | ^^^^^^^^^^^^ ---------- not a function or static
366 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
368 warning: attribute should be applied to a function
369 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:506:17
371 LL | mod inner { #![cold] }
372 | ------------^^^^^^^^-- not a function
374 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
376 warning: attribute should be applied to a function
377 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:513:5
379 LL | #[cold] struct S;
380 | ^^^^^^^ --------- not a function
382 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
384 warning: attribute should be applied to a function
385 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:518:5
387 LL | #[cold] type T = S;
388 | ^^^^^^^ ----------- not a function
390 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
392 warning: attribute should be applied to a function
393 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:523:5
395 LL | #[cold] impl S { }
396 | ^^^^^^^ ---------- not a function
398 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
400 warning: attribute should be applied to a foreign function or static
401 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:535:5
403 LL | #[link_name = "1900"]
404 | ^^^^^^^^^^^^^^^^^^^^^
407 | -------------- not a foreign function or static
409 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
410 help: try `#[link(name = "1900")]` instead
411 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:535:5
413 LL | #[link_name = "1900"]
414 | ^^^^^^^^^^^^^^^^^^^^^
416 warning: attribute should be applied to a foreign function or static
417 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:542:17
419 LL | mod inner { #![link_name="1900"] }
420 | ------------^^^^^^^^^^^^^^^^^^^^-- not a foreign function or static
422 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
424 warning: attribute should be applied to a foreign function or static
425 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:547:5
427 LL | #[link_name = "1900"] fn f() { }
428 | ^^^^^^^^^^^^^^^^^^^^^ ---------- not a foreign function or static
430 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
432 warning: attribute should be applied to a foreign function or static
433 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:552:5
435 LL | #[link_name = "1900"] struct S;
436 | ^^^^^^^^^^^^^^^^^^^^^ --------- not a foreign function or static
438 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
440 warning: attribute should be applied to a foreign function or static
441 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:557:5
443 LL | #[link_name = "1900"] type T = S;
444 | ^^^^^^^^^^^^^^^^^^^^^ ----------- not a foreign function or static
446 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
448 warning: attribute should be applied to a foreign function or static
449 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:562:5
451 LL | #[link_name = "1900"] impl S { }
452 | ^^^^^^^^^^^^^^^^^^^^^ ---------- not a foreign function or static
454 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
456 warning: attribute should be applied to a function or static
457 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:574:17
459 LL | mod inner { #![link_section="1800"] }
460 | ------------^^^^^^^^^^^^^^^^^^^^^^^-- not a function or static
462 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
464 warning: attribute should be applied to a function or static
465 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:581:5
467 LL | #[link_section = "1800"] struct S;
468 | ^^^^^^^^^^^^^^^^^^^^^^^^ --------- not a function or static
470 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
472 warning: attribute should be applied to a function or static
473 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:586:5
475 LL | #[link_section = "1800"] type T = S;
476 | ^^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a function or static
478 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
480 warning: attribute should be applied to a function or static
481 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:591:5
483 LL | #[link_section = "1800"] impl S { }
484 | ^^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a function or static
486 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
488 warning: the feature `rust1` has been stable since 1.0.0 and no longer requires an attribute to enable
489 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:96:12
491 LL | #![feature(rust1)]
494 = note: `#[warn(stable_features)]` on by default
496 warning: unused attribute
497 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:46:1
499 LL | #![plugin_registrar]
500 | ^^^^^^^^^^^^^^^^^^^^
502 warning: unused attribute
503 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:60:1
505 LL | #![should_panic]
508 warning: unused attribute
509 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:61:1
514 warning: unused attribute
515 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:67:1
517 LL | #![proc_macro_derive()]
518 | ^^^^^^^^^^^^^^^^^^^^^^^
520 warning: unused attribute
521 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:191:5
523 LL | #[macro_use] fn f() { }
526 warning: unused attribute
527 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:194:5
529 LL | #[macro_use] struct S;
532 warning: unused attribute
533 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:197:5
535 LL | #[macro_use] type T = S;
538 warning: unused attribute
539 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:200:5
541 LL | #[macro_use] impl S { }
544 warning: unused attribute
545 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:204:1
550 warning: unused attribute
551 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:207:17
553 LL | mod inner { #![macro_export] }
556 warning: unused attribute
557 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:210:5
559 LL | #[macro_export] fn f() { }
562 warning: unused attribute
563 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:213:5
565 LL | #[macro_export] struct S;
568 warning: unused attribute
569 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:216:5
571 LL | #[macro_export] type T = S;
574 warning: unused attribute
575 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:219:5
577 LL | #[macro_export] impl S { }
580 warning: unused attribute
581 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:223:1
583 LL | #[plugin_registrar]
584 | ^^^^^^^^^^^^^^^^^^^
586 warning: unused attribute
587 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:228:17
589 LL | mod inner { #![plugin_registrar] }
590 | ^^^^^^^^^^^^^^^^^^^^
592 warning: unused attribute
593 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:236:5
595 LL | #[plugin_registrar] struct S;
596 | ^^^^^^^^^^^^^^^^^^^
598 warning: unused attribute
599 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:241:5
601 LL | #[plugin_registrar] type T = S;
602 | ^^^^^^^^^^^^^^^^^^^
604 warning: unused attribute
605 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:246:5
607 LL | #[plugin_registrar] impl S { }
608 | ^^^^^^^^^^^^^^^^^^^
610 warning: unused attribute
611 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:301:5
613 LL | #[path = "3800"] fn f() { }
616 warning: unused attribute
617 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:304:5
619 LL | #[path = "3800"] struct S;
622 warning: unused attribute
623 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:307:5
625 LL | #[path = "3800"] type T = S;
628 warning: unused attribute
629 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:310:5
631 LL | #[path = "3800"] impl S { }
634 warning: unused attribute
635 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:314:1
637 LL | #[automatically_derived]
638 | ^^^^^^^^^^^^^^^^^^^^^^^^
640 warning: unused attribute
641 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:317:17
643 LL | mod inner { #![automatically_derived] }
644 | ^^^^^^^^^^^^^^^^^^^^^^^^^
646 warning: unused attribute
647 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:320:5
649 LL | #[automatically_derived] fn f() { }
650 | ^^^^^^^^^^^^^^^^^^^^^^^^
652 warning: unused attribute
653 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:323:5
655 LL | #[automatically_derived] struct S;
656 | ^^^^^^^^^^^^^^^^^^^^^^^^
658 warning: unused attribute
659 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:326:5
661 LL | #[automatically_derived] type T = S;
662 | ^^^^^^^^^^^^^^^^^^^^^^^^
664 warning: unused attribute
665 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:329:5
667 LL | #[automatically_derived] impl S { }
668 | ^^^^^^^^^^^^^^^^^^^^^^^^
670 warning: unused attribute
671 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:361:1
676 warning: unused attribute
677 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:364:17
679 LL | mod inner { #![should_panic] }
682 warning: unused attribute
683 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:367:5
685 LL | #[should_panic] fn f() { }
688 warning: unused attribute
689 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:370:5
691 LL | #[should_panic] struct S;
694 warning: unused attribute
695 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:373:5
697 LL | #[should_panic] type T = S;
700 warning: unused attribute
701 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:376:5
703 LL | #[should_panic] impl S { }
706 warning: unused attribute
707 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:380:1
712 warning: unused attribute
713 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:383:17
715 LL | mod inner { #![ignore] }
718 warning: unused attribute
719 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:386:5
721 LL | #[ignore] fn f() { }
724 warning: unused attribute
725 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:389:5
727 LL | #[ignore] struct S;
730 warning: unused attribute
731 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:392:5
733 LL | #[ignore] type T = S;
736 warning: unused attribute
737 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:395:5
739 LL | #[ignore] impl S { }
742 warning: unused attribute
743 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:399:1
745 LL | #[no_implicit_prelude]
746 | ^^^^^^^^^^^^^^^^^^^^^^
748 warning: unused attribute
749 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:402:17
751 LL | mod inner { #![no_implicit_prelude] }
752 | ^^^^^^^^^^^^^^^^^^^^^^^
754 warning: unused attribute
755 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:405:5
757 LL | #[no_implicit_prelude] fn f() { }
758 | ^^^^^^^^^^^^^^^^^^^^^^
760 warning: unused attribute
761 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:408:5
763 LL | #[no_implicit_prelude] struct S;
764 | ^^^^^^^^^^^^^^^^^^^^^^
766 warning: unused attribute
767 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:411:5
769 LL | #[no_implicit_prelude] type T = S;
770 | ^^^^^^^^^^^^^^^^^^^^^^
772 warning: unused attribute
773 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:414:5
775 LL | #[no_implicit_prelude] impl S { }
776 | ^^^^^^^^^^^^^^^^^^^^^^
778 warning: unused attribute
779 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:418:1
781 LL | #[reexport_test_harness_main = "2900"]
782 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
784 warning: unused attribute
785 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:421:17
787 LL | mod inner { #![reexport_test_harness_main="2900"] }
788 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
790 warning: unused attribute
791 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:424:5
793 LL | #[reexport_test_harness_main = "2900"] fn f() { }
794 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
796 warning: unused attribute
797 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:427:5
799 LL | #[reexport_test_harness_main = "2900"] struct S;
800 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
802 warning: unused attribute
803 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:430:5
805 LL | #[reexport_test_harness_main = "2900"] type T = S;
806 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
808 warning: unused attribute
809 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:433:5
811 LL | #[reexport_test_harness_main = "2900"] impl S { }
812 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
814 warning: unused attribute
815 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:445:5
817 LL | #[macro_escape] fn f() { }
820 warning: unused attribute
821 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:448:5
823 LL | #[macro_escape] struct S;
826 warning: unused attribute
827 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:451:5
829 LL | #[macro_escape] type T = S;
832 warning: unused attribute
833 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:454:5
835 LL | #[macro_escape] impl S { }
838 warning: unused attribute
839 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:458:1
844 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
845 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:458:1
850 warning: unused attribute
851 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:462:17
853 LL | mod inner { #![no_std] }
856 warning: crate-level attribute should be in the root module
857 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:462:17
859 LL | mod inner { #![no_std] }
862 warning: unused attribute
863 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:466:5
865 LL | #[no_std] fn f() { }
868 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
869 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:466:5
871 LL | #[no_std] fn f() { }
874 warning: unused attribute
875 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:470:5
877 LL | #[no_std] struct S;
880 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
881 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:470:5
883 LL | #[no_std] struct S;
886 warning: unused attribute
887 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:474:5
889 LL | #[no_std] type T = S;
892 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
893 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:474:5
895 LL | #[no_std] type T = S;
898 warning: unused attribute
899 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:478:5
901 LL | #[no_std] impl S { }
904 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
905 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:478:5
907 LL | #[no_std] impl S { }
910 warning: unused attribute
911 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:659:1
913 LL | #[crate_name = "0900"]
914 | ^^^^^^^^^^^^^^^^^^^^^^
916 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
917 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:659:1
919 LL | #[crate_name = "0900"]
920 | ^^^^^^^^^^^^^^^^^^^^^^
922 warning: unused attribute
923 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:663:17
925 LL | mod inner { #![crate_name="0900"] }
926 | ^^^^^^^^^^^^^^^^^^^^^
928 warning: crate-level attribute should be in the root module
929 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:663:17
931 LL | mod inner { #![crate_name="0900"] }
932 | ^^^^^^^^^^^^^^^^^^^^^
934 warning: unused attribute
935 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:667:5
937 LL | #[crate_name = "0900"] fn f() { }
938 | ^^^^^^^^^^^^^^^^^^^^^^
940 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
941 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:667:5
943 LL | #[crate_name = "0900"] fn f() { }
944 | ^^^^^^^^^^^^^^^^^^^^^^
946 warning: unused attribute
947 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:671:5
949 LL | #[crate_name = "0900"] struct S;
950 | ^^^^^^^^^^^^^^^^^^^^^^
952 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
953 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:671:5
955 LL | #[crate_name = "0900"] struct S;
956 | ^^^^^^^^^^^^^^^^^^^^^^
958 warning: unused attribute
959 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:675:5
961 LL | #[crate_name = "0900"] type T = S;
962 | ^^^^^^^^^^^^^^^^^^^^^^
964 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
965 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:675:5
967 LL | #[crate_name = "0900"] type T = S;
968 | ^^^^^^^^^^^^^^^^^^^^^^
970 warning: unused attribute
971 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:679:5
973 LL | #[crate_name = "0900"] impl S { }
974 | ^^^^^^^^^^^^^^^^^^^^^^
976 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
977 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:679:5
979 LL | #[crate_name = "0900"] impl S { }
980 | ^^^^^^^^^^^^^^^^^^^^^^
982 warning: unused attribute
983 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:684:1
985 LL | #[crate_type = "0800"]
986 | ^^^^^^^^^^^^^^^^^^^^^^
988 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
989 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:684:1
991 LL | #[crate_type = "0800"]
992 | ^^^^^^^^^^^^^^^^^^^^^^
994 warning: unused attribute
995 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:688:17
997 LL | mod inner { #![crate_type="0800"] }
998 | ^^^^^^^^^^^^^^^^^^^^^
1000 warning: crate-level attribute should be in the root module
1001 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:688:17
1003 LL | mod inner { #![crate_type="0800"] }
1004 | ^^^^^^^^^^^^^^^^^^^^^
1006 warning: unused attribute
1007 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:692:5
1009 LL | #[crate_type = "0800"] fn f() { }
1010 | ^^^^^^^^^^^^^^^^^^^^^^
1012 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1013 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:692:5
1015 LL | #[crate_type = "0800"] fn f() { }
1016 | ^^^^^^^^^^^^^^^^^^^^^^
1018 warning: unused attribute
1019 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:696:5
1021 LL | #[crate_type = "0800"] struct S;
1022 | ^^^^^^^^^^^^^^^^^^^^^^
1024 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1025 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:696:5
1027 LL | #[crate_type = "0800"] struct S;
1028 | ^^^^^^^^^^^^^^^^^^^^^^
1030 warning: unused attribute
1031 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:700:5
1033 LL | #[crate_type = "0800"] type T = S;
1034 | ^^^^^^^^^^^^^^^^^^^^^^
1036 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1037 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:700:5
1039 LL | #[crate_type = "0800"] type T = S;
1040 | ^^^^^^^^^^^^^^^^^^^^^^
1042 warning: unused attribute
1043 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:704:5
1045 LL | #[crate_type = "0800"] impl S { }
1046 | ^^^^^^^^^^^^^^^^^^^^^^
1048 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1049 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:704:5
1051 LL | #[crate_type = "0800"] impl S { }
1052 | ^^^^^^^^^^^^^^^^^^^^^^
1054 warning: unused attribute
1055 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:709:1
1057 LL | #[feature(x0600)]
1060 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1061 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:709:1
1063 LL | #[feature(x0600)]
1066 warning: unused attribute
1067 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:713:17
1069 LL | mod inner { #![feature(x0600)] }
1070 | ^^^^^^^^^^^^^^^^^^
1072 warning: crate-level attribute should be in the root module
1073 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:713:17
1075 LL | mod inner { #![feature(x0600)] }
1076 | ^^^^^^^^^^^^^^^^^^
1078 warning: unused attribute
1079 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:717:5
1081 LL | #[feature(x0600)] fn f() { }
1084 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1085 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:717:5
1087 LL | #[feature(x0600)] fn f() { }
1090 warning: unused attribute
1091 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:721:5
1093 LL | #[feature(x0600)] struct S;
1096 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1097 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:721:5
1099 LL | #[feature(x0600)] struct S;
1102 warning: unused attribute
1103 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:725:5
1105 LL | #[feature(x0600)] type T = S;
1108 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1109 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:725:5
1111 LL | #[feature(x0600)] type T = S;
1114 warning: unused attribute
1115 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:729:5
1117 LL | #[feature(x0600)] impl S { }
1120 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1121 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:729:5
1123 LL | #[feature(x0600)] impl S { }
1126 warning: unused attribute
1127 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:735:1
1132 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1133 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:735:1
1138 warning: unused attribute
1139 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:739:17
1141 LL | mod inner { #![no_main] }
1144 warning: crate-level attribute should be in the root module
1145 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:739:17
1147 LL | mod inner { #![no_main] }
1150 warning: unused attribute
1151 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:743:5
1153 LL | #[no_main] fn f() { }
1156 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1157 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:743:5
1159 LL | #[no_main] fn f() { }
1162 warning: unused attribute
1163 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:747:5
1165 LL | #[no_main] struct S;
1168 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1169 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:747:5
1171 LL | #[no_main] struct S;
1174 warning: unused attribute
1175 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:751:5
1177 LL | #[no_main] type T = S;
1180 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1181 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:751:5
1183 LL | #[no_main] type T = S;
1186 warning: unused attribute
1187 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:755:5
1189 LL | #[no_main] impl S { }
1192 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1193 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:755:5
1195 LL | #[no_main] impl S { }
1198 warning: unused attribute
1199 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:773:1
1201 LL | #[recursion_limit="0200"]
1202 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1204 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1205 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:773:1
1207 LL | #[recursion_limit="0200"]
1208 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1210 warning: unused attribute
1211 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:777:17
1213 LL | mod inner { #![recursion_limit="0200"] }
1214 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
1216 warning: crate-level attribute should be in the root module
1217 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:777:17
1219 LL | mod inner { #![recursion_limit="0200"] }
1220 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
1222 warning: unused attribute
1223 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:781:5
1225 LL | #[recursion_limit="0200"] fn f() { }
1226 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1228 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1229 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:781:5
1231 LL | #[recursion_limit="0200"] fn f() { }
1232 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1234 warning: unused attribute
1235 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:785:5
1237 LL | #[recursion_limit="0200"] struct S;
1238 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1240 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1241 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:785:5
1243 LL | #[recursion_limit="0200"] struct S;
1244 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1246 warning: unused attribute
1247 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:789:5
1249 LL | #[recursion_limit="0200"] type T = S;
1250 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1252 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1253 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:789:5
1255 LL | #[recursion_limit="0200"] type T = S;
1256 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1258 warning: unused attribute
1259 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:793:5
1261 LL | #[recursion_limit="0200"] impl S { }
1262 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1264 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1265 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:793:5
1267 LL | #[recursion_limit="0200"] impl S { }
1268 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1270 warning: unused attribute
1271 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:798:1
1273 LL | #[type_length_limit="0100"]
1274 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1276 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1277 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:798:1
1279 LL | #[type_length_limit="0100"]
1280 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1282 warning: unused attribute
1283 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:802:17
1285 LL | mod inner { #![type_length_limit="0100"] }
1286 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1288 warning: crate-level attribute should be in the root module
1289 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:802:17
1291 LL | mod inner { #![type_length_limit="0100"] }
1292 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1294 warning: unused attribute
1295 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:806:5
1297 LL | #[type_length_limit="0100"] fn f() { }
1298 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1300 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1301 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:806:5
1303 LL | #[type_length_limit="0100"] fn f() { }
1304 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1306 warning: unused attribute
1307 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:810:5
1309 LL | #[type_length_limit="0100"] struct S;
1310 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1312 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1313 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:810:5
1315 LL | #[type_length_limit="0100"] struct S;
1316 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1318 warning: unused attribute
1319 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:814:5
1321 LL | #[type_length_limit="0100"] type T = S;
1322 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1324 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1325 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:814:5
1327 LL | #[type_length_limit="0100"] type T = S;
1328 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1330 warning: unused attribute
1331 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:818:5
1333 LL | #[type_length_limit="0100"] impl S { }
1334 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1336 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1337 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:818:5
1339 LL | #[type_length_limit="0100"] impl S { }
1340 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1342 warning: 205 warnings emitted