1 warning: unknown lint: `x5400`
2 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:46: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:47:10
19 warning: unknown lint: `x5200`
20 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:48:11
22 LL | #![forbid(x5200)]
25 warning: unknown lint: `x5100`
26 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:49:9
31 warning: unknown lint: `x5400`
32 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:106:8
37 warning: unknown lint: `x5400`
38 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:109:25
40 LL | mod inner { #![warn(x5400)] }
43 warning: unknown lint: `x5400`
44 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:112:12
46 LL | #[warn(x5400)] fn f() { }
49 warning: unknown lint: `x5400`
50 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:115:12
52 LL | #[warn(x5400)] struct S;
55 warning: unknown lint: `x5400`
56 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:118:12
58 LL | #[warn(x5400)] type T = S;
61 warning: unknown lint: `x5400`
62 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:121:12
64 LL | #[warn(x5400)] impl S { }
67 warning: unknown lint: `x5300`
68 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:125:9
73 warning: unknown lint: `x5300`
74 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:128:26
76 LL | mod inner { #![allow(x5300)] }
79 warning: unknown lint: `x5300`
80 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:131:13
82 LL | #[allow(x5300)] fn f() { }
85 warning: unknown lint: `x5300`
86 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:134:13
88 LL | #[allow(x5300)] struct S;
91 warning: unknown lint: `x5300`
92 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:137:13
94 LL | #[allow(x5300)] type T = S;
97 warning: unknown lint: `x5300`
98 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:140:13
100 LL | #[allow(x5300)] impl S { }
103 warning: unknown lint: `x5200`
104 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:144:10
106 LL | #[forbid(x5200)]
109 warning: unknown lint: `x5200`
110 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:147:27
112 LL | mod inner { #![forbid(x5200)] }
115 warning: unknown lint: `x5200`
116 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:150:14
118 LL | #[forbid(x5200)] fn f() { }
121 warning: unknown lint: `x5200`
122 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:153:14
124 LL | #[forbid(x5200)] struct S;
127 warning: unknown lint: `x5200`
128 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:156:14
130 LL | #[forbid(x5200)] type T = S;
133 warning: unknown lint: `x5200`
134 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:159:14
136 LL | #[forbid(x5200)] impl S { }
139 warning: unknown lint: `x5100`
140 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:163:8
145 warning: unknown lint: `x5100`
146 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:166:25
148 LL | mod inner { #![deny(x5100)] }
151 warning: unknown lint: `x5100`
152 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:169:12
154 LL | #[deny(x5100)] fn f() { }
157 warning: unknown lint: `x5100`
158 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:172:12
160 LL | #[deny(x5100)] struct S;
163 warning: unknown lint: `x5100`
164 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:175:12
166 LL | #[deny(x5100)] type T = S;
169 warning: unknown lint: `x5100`
170 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:178: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:401: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:398:1
189 warning: use of deprecated attribute `crate_id`: no longer used.
190 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:85:1
192 LL | #![crate_id = "10"]
193 | ^^^^^^^^^^^^^^^^^^^ help: remove this attribute
195 = note: `#[warn(deprecated)]` on by default
197 warning: use of deprecated attribute `no_start`: no longer used.
198 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:95:1
201 | ^^^^^^^^^^^^ help: remove this attribute
203 warning: `#[macro_export]` only has an effect on macro definitions
204 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:199:1
209 note: the lint level is defined here
210 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:40:9
212 LL | #![warn(unused_attributes, unknown_lints)]
215 warning: `#[automatically_derived]` only has an effect on items
216 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:267:1
218 LL | #[automatically_derived]
219 | ^^^^^^^^^^^^^^^^^^^^^^^^
221 warning: attribute should be applied to a free function, impl method or static
222 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:285:1
227 LL | / mod no_mangle {
229 LL | | mod inner { #![no_mangle] }
234 | |_- not a free function, impl method or static
236 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
238 warning: `#[should_panic]` only has an effect on functions
239 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:325:1
244 warning: `#[ignore]` only has an effect on functions
245 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:343:1
250 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
251 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:378:1
253 LL | #[reexport_test_harness_main = "2900"]
254 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
256 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
257 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:418:1
262 warning: attribute should be applied to a function
263 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:454:1
271 LL | | mod inner { #![cold] }
277 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
279 warning: attribute should be applied to a foreign function or static
280 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:483:1
282 LL | #[link_name = "1900"]
283 | ^^^^^^^^^^^^^^^^^^^^^
285 LL | / mod link_name {
288 LL | | #[link_name = "1900"]
292 | |_- not a foreign function or static
294 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
296 warning: attribute should be applied to a function or static
297 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:522:1
299 LL | #[link_section = "1800"]
300 | ^^^^^^^^^^^^^^^^^^^^^^^^
302 LL | / mod link_section {
305 LL | | mod inner { #![link_section="1800"] }
309 | |_- not a function or static
311 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
313 warning: attribute should be applied to an `extern` block with non-Rust ABI
314 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:554:1
322 LL | | mod inner { #![link()] }
326 | |_- not an `extern` block
328 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
330 warning: `#[must_use]` has no effect when applied to a module
331 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:605:1
336 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
337 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:618:1
339 LL | #[windows_subsystem = "windows"]
340 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
342 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
343 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:639:1
345 LL | #[crate_name = "0900"]
346 | ^^^^^^^^^^^^^^^^^^^^^^
348 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
349 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:658:1
351 LL | #[crate_type = "0800"]
352 | ^^^^^^^^^^^^^^^^^^^^^^
354 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
355 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:677:1
357 LL | #[feature(x0600)]
360 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
361 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:697:1
366 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
367 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:716:1
372 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
373 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:735:1
375 LL | #[recursion_limit="0200"]
376 | ^^^^^^^^^^^^^^^^^^^^^^^^^
378 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
379 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:754:1
381 LL | #[type_length_limit="0100"]
382 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
384 warning: `#[should_panic]` only has an effect on functions
385 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:53:1
387 LL | #![should_panic]
390 warning: `#[ignore]` only has an effect on functions
391 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:54:1
396 warning: `#[proc_macro_derive]` only has an effect on functions
397 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:60:1
399 LL | #![proc_macro_derive()]
400 | ^^^^^^^^^^^^^^^^^^^^^^^
402 warning: attribute should be applied to a function
403 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:62:1
408 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
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
416 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
418 warning: attribute should be applied to a foreign function or static
419 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:66:1
421 LL | #![link_name = "1900"]
422 | ^^^^^^^^^^^^^^^^^^^^^^
424 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
426 warning: attribute should be applied to a function or static
427 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:69:1
429 LL | #![link_section = "1800"]
430 | ^^^^^^^^^^^^^^^^^^^^^^^^^
432 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
434 warning: `#[must_use]` has no effect when applied to a module
435 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:73:1
440 warning: `#[macro_use]` only has an effect on `extern crate` and modules
441 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:186:5
443 LL | #[macro_use] fn f() { }
446 warning: `#[macro_use]` only has an effect on `extern crate` and modules
447 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:189:5
449 LL | #[macro_use] struct S;
452 warning: `#[macro_use]` only has an effect on `extern crate` and modules
453 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:192:5
455 LL | #[macro_use] type T = S;
458 warning: `#[macro_use]` only has an effect on `extern crate` and modules
459 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:195:5
461 LL | #[macro_use] impl S { }
464 warning: `#[macro_export]` only has an effect on macro definitions
465 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:202:17
467 LL | mod inner { #![macro_export] }
470 warning: `#[macro_export]` only has an effect on macro definitions
471 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:205:5
473 LL | #[macro_export] fn f() { }
476 warning: `#[macro_export]` only has an effect on macro definitions
477 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:208:5
479 LL | #[macro_export] struct S;
482 warning: `#[macro_export]` only has an effect on macro definitions
483 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:211:5
485 LL | #[macro_export] type T = S;
488 warning: `#[macro_export]` only has an effect on macro definitions
489 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:214:5
491 LL | #[macro_export] impl S { }
494 warning: `#[path]` only has an effect on modules
495 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:254:5
497 LL | #[path = "3800"] fn f() { }
500 warning: `#[path]` only has an effect on modules
501 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:257:5
503 LL | #[path = "3800"] struct S;
506 warning: `#[path]` only has an effect on modules
507 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:260:5
509 LL | #[path = "3800"] type T = S;
512 warning: `#[path]` only has an effect on modules
513 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:263:5
515 LL | #[path = "3800"] impl S { }
518 warning: `#[automatically_derived]` only has an effect on items
519 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:270:17
521 LL | mod inner { #![automatically_derived] }
522 | ^^^^^^^^^^^^^^^^^^^^^^^^^
524 warning: `#[automatically_derived]` only has an effect on items
525 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:273:5
527 LL | #[automatically_derived] fn f() { }
528 | ^^^^^^^^^^^^^^^^^^^^^^^^
530 warning: `#[automatically_derived]` only has an effect on items
531 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:276:5
533 LL | #[automatically_derived] struct S;
534 | ^^^^^^^^^^^^^^^^^^^^^^^^
536 warning: `#[automatically_derived]` only has an effect on items
537 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:279:5
539 LL | #[automatically_derived] type T = S;
540 | ^^^^^^^^^^^^^^^^^^^^^^^^
542 warning: attribute should be applied to a free function, impl method or static
543 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:290:17
545 LL | mod inner { #![no_mangle] }
546 | ------------^^^^^^^^^^^^^-- not a free function, impl method or static
548 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
550 warning: attribute should be applied to a free function, impl method or static
551 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:297:5
553 LL | #[no_mangle] struct S;
554 | ^^^^^^^^^^^^ --------- not a free function, impl method or static
556 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
558 warning: attribute should be applied to a free function, impl method or static
559 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:302:5
561 LL | #[no_mangle] type T = S;
562 | ^^^^^^^^^^^^ ----------- not a free function, impl method or static
564 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
566 warning: attribute should be applied to a free function, impl method or static
567 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:307:5
569 LL | #[no_mangle] impl S { }
570 | ^^^^^^^^^^^^ ---------- not a free function, impl method or static
572 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
574 warning: attribute should be applied to a free function, impl method or static
575 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:313:9
577 LL | #[no_mangle] fn foo();
578 | ^^^^^^^^^^^^ --------- not a free function, impl method or static
580 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
582 warning: attribute should be applied to a free function, impl method or static
583 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:318:9
585 LL | #[no_mangle] fn bar() {}
586 | ^^^^^^^^^^^^ ----------- not a free function, impl method or static
588 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
590 warning: `#[should_panic]` only has an effect on functions
591 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:328:17
593 LL | mod inner { #![should_panic] }
596 warning: `#[should_panic]` only has an effect on functions
597 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:333:5
599 LL | #[should_panic] struct S;
602 warning: `#[should_panic]` only has an effect on functions
603 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:336:5
605 LL | #[should_panic] type T = S;
608 warning: `#[should_panic]` only has an effect on functions
609 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:339:5
611 LL | #[should_panic] impl S { }
614 warning: `#[ignore]` only has an effect on functions
615 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:346:17
617 LL | mod inner { #![ignore] }
620 warning: `#[ignore]` only has an effect on functions
621 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:351:5
623 LL | #[ignore] struct S;
626 warning: `#[ignore]` only has an effect on functions
627 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:354:5
629 LL | #[ignore] type T = S;
632 warning: `#[ignore]` only has an effect on functions
633 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:357:5
635 LL | #[ignore] impl S { }
638 warning: `#[no_implicit_prelude]` only has an effect on modules
639 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:365:5
641 LL | #[no_implicit_prelude] fn f() { }
642 | ^^^^^^^^^^^^^^^^^^^^^^
644 warning: `#[no_implicit_prelude]` only has an effect on modules
645 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:368:5
647 LL | #[no_implicit_prelude] struct S;
648 | ^^^^^^^^^^^^^^^^^^^^^^
650 warning: `#[no_implicit_prelude]` only has an effect on modules
651 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:371:5
653 LL | #[no_implicit_prelude] type T = S;
654 | ^^^^^^^^^^^^^^^^^^^^^^
656 warning: `#[no_implicit_prelude]` only has an effect on modules
657 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:374:5
659 LL | #[no_implicit_prelude] impl S { }
660 | ^^^^^^^^^^^^^^^^^^^^^^
662 warning: crate-level attribute should be in the root module
663 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:381:17
665 LL | mod inner { #![reexport_test_harness_main="2900"] }
666 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
668 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
669 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:384:5
671 LL | #[reexport_test_harness_main = "2900"] fn f() { }
672 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
674 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
675 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:387:5
677 LL | #[reexport_test_harness_main = "2900"] struct S;
678 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
680 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
681 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:390:5
683 LL | #[reexport_test_harness_main = "2900"] type T = S;
684 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
686 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
687 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:393:5
689 LL | #[reexport_test_harness_main = "2900"] impl S { }
690 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
692 warning: `#[macro_escape]` only has an effect on `extern crate` and modules
693 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:405:5
695 LL | #[macro_escape] fn f() { }
698 warning: `#[macro_escape]` only has an effect on `extern crate` and modules
699 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:408:5
701 LL | #[macro_escape] struct S;
704 warning: `#[macro_escape]` only has an effect on `extern crate` and modules
705 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:411:5
707 LL | #[macro_escape] type T = S;
710 warning: `#[macro_escape]` only has an effect on `extern crate` and modules
711 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:414:5
713 LL | #[macro_escape] impl S { }
716 warning: crate-level attribute should be in the root module
717 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:421:17
719 LL | mod inner { #![no_std] }
722 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
723 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:424:5
725 LL | #[no_std] fn f() { }
728 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
729 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:427:5
731 LL | #[no_std] struct S;
734 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
735 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:430:5
737 LL | #[no_std] type T = S;
740 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
741 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:433:5
743 LL | #[no_std] impl S { }
746 warning: attribute should be applied to a function
747 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:460:17
749 LL | mod inner { #![cold] }
750 | ------------^^^^^^^^-- not a function
752 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
754 warning: attribute should be applied to a function
755 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:467:5
757 LL | #[cold] struct S;
758 | ^^^^^^^ --------- not a function
760 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
762 warning: attribute should be applied to a function
763 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:472:5
765 LL | #[cold] type T = S;
766 | ^^^^^^^ ----------- not a function
768 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
770 warning: attribute should be applied to a function
771 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:477:5
773 LL | #[cold] impl S { }
774 | ^^^^^^^ ---------- not a function
776 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
778 warning: attribute should be applied to a foreign function or static
779 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:489:5
781 LL | #[link_name = "1900"]
782 | ^^^^^^^^^^^^^^^^^^^^^
785 | -------------- not a foreign function or static
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:489:5
791 LL | #[link_name = "1900"]
792 | ^^^^^^^^^^^^^^^^^^^^^
794 warning: attribute should be applied to a foreign function or static
795 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:496:17
797 LL | mod inner { #![link_name="1900"] }
798 | ------------^^^^^^^^^^^^^^^^^^^^-- not a foreign function or static
800 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
802 warning: attribute should be applied to a foreign function or static
803 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:501:5
805 LL | #[link_name = "1900"] fn f() { }
806 | ^^^^^^^^^^^^^^^^^^^^^ ---------- not a foreign function or static
808 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
810 warning: attribute should be applied to a foreign function or static
811 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:506:5
813 LL | #[link_name = "1900"] struct S;
814 | ^^^^^^^^^^^^^^^^^^^^^ --------- not a foreign function or static
816 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
818 warning: attribute should be applied to a foreign function or static
819 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:511:5
821 LL | #[link_name = "1900"] type T = S;
822 | ^^^^^^^^^^^^^^^^^^^^^ ----------- not a foreign function or static
824 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
826 warning: attribute should be applied to a foreign function or static
827 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:516:5
829 LL | #[link_name = "1900"] impl S { }
830 | ^^^^^^^^^^^^^^^^^^^^^ ---------- not a foreign function or static
832 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
834 warning: attribute should be applied to a function or static
835 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:528:17
837 LL | mod inner { #![link_section="1800"] }
838 | ------------^^^^^^^^^^^^^^^^^^^^^^^-- not a function or static
840 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
842 warning: attribute should be applied to a function or static
843 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:535:5
845 LL | #[link_section = "1800"] struct S;
846 | ^^^^^^^^^^^^^^^^^^^^^^^^ --------- not a function or static
848 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
850 warning: attribute should be applied to a function or static
851 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:540:5
853 LL | #[link_section = "1800"] type T = S;
854 | ^^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a function or static
856 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
858 warning: attribute should be applied to a function or static
859 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:545:5
861 LL | #[link_section = "1800"] impl S { }
862 | ^^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a function or static
864 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
866 warning: attribute should be applied to an `extern` block with non-Rust ABI
867 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:560:17
869 LL | mod inner { #![link()] }
870 | ------------^^^^^^^^^^-- not an `extern` block
872 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
874 warning: attribute should be applied to an `extern` block with non-Rust ABI
875 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:565:5
877 LL | #[link()] fn f() { }
878 | ^^^^^^^^^ ---------- not an `extern` block
880 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
882 warning: attribute should be applied to an `extern` block with non-Rust ABI
883 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:570:5
885 LL | #[link()] struct S;
886 | ^^^^^^^^^ --------- not an `extern` block
888 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
890 warning: attribute should be applied to an `extern` block with non-Rust ABI
891 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:575:5
893 LL | #[link()] type T = S;
894 | ^^^^^^^^^ ----------- not an `extern` block
896 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
898 warning: attribute should be applied to an `extern` block with non-Rust ABI
899 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:580:5
901 LL | #[link()] impl S { }
902 | ^^^^^^^^^ ---------- not an `extern` block
904 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
906 warning: attribute should be applied to an `extern` block with non-Rust ABI
907 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:585:5
909 LL | #[link()] extern "Rust" {}
912 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
914 warning: `#[must_use]` has no effect when applied to a module
915 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:607:17
917 LL | mod inner { #![must_use] }
920 warning: `#[must_use]` has no effect when applied to a type alias
921 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:613:5
923 LL | #[must_use] type T = S;
926 warning: `#[must_use]` has no effect when applied to an item
927 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:615:5
929 LL | #[must_use] impl S { }
932 warning: crate-level attribute should be in the root module
933 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:621:17
935 LL | mod inner { #![windows_subsystem="windows"] }
936 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
938 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
939 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:624:5
941 LL | #[windows_subsystem = "windows"] fn f() { }
942 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
944 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
945 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:627:5
947 LL | #[windows_subsystem = "windows"] struct S;
948 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
950 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
951 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:630:5
953 LL | #[windows_subsystem = "windows"] type T = S;
954 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
956 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
957 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:633:5
959 LL | #[windows_subsystem = "windows"] impl S { }
960 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
962 warning: crate-level attribute should be in the root module
963 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:642:17
965 LL | mod inner { #![crate_name="0900"] }
966 | ^^^^^^^^^^^^^^^^^^^^^
968 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
969 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:645:5
971 LL | #[crate_name = "0900"] fn f() { }
972 | ^^^^^^^^^^^^^^^^^^^^^^
974 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
975 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:648:5
977 LL | #[crate_name = "0900"] struct S;
978 | ^^^^^^^^^^^^^^^^^^^^^^
980 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
981 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:651:5
983 LL | #[crate_name = "0900"] type T = S;
984 | ^^^^^^^^^^^^^^^^^^^^^^
986 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
987 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:654:5
989 LL | #[crate_name = "0900"] impl S { }
990 | ^^^^^^^^^^^^^^^^^^^^^^
992 warning: crate-level attribute should be in the root module
993 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:661:17
995 LL | mod inner { #![crate_type="0800"] }
996 | ^^^^^^^^^^^^^^^^^^^^^
998 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
999 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:664:5
1001 LL | #[crate_type = "0800"] fn f() { }
1002 | ^^^^^^^^^^^^^^^^^^^^^^
1004 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1005 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:667:5
1007 LL | #[crate_type = "0800"] struct S;
1008 | ^^^^^^^^^^^^^^^^^^^^^^
1010 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1011 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:670:5
1013 LL | #[crate_type = "0800"] type T = S;
1014 | ^^^^^^^^^^^^^^^^^^^^^^
1016 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1017 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:673:5
1019 LL | #[crate_type = "0800"] impl S { }
1020 | ^^^^^^^^^^^^^^^^^^^^^^
1022 warning: crate-level attribute should be in the root module
1023 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:680:17
1025 LL | mod inner { #![feature(x0600)] }
1026 | ^^^^^^^^^^^^^^^^^^
1028 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1029 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:683:5
1031 LL | #[feature(x0600)] fn f() { }
1034 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1035 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:686:5
1037 LL | #[feature(x0600)] struct S;
1040 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1041 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:689:5
1043 LL | #[feature(x0600)] type T = S;
1046 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1047 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:692:5
1049 LL | #[feature(x0600)] impl S { }
1052 warning: crate-level attribute should be in the root module
1053 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:700:17
1055 LL | mod inner { #![no_main] }
1058 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1059 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:703:5
1061 LL | #[no_main] fn f() { }
1064 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1065 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:706:5
1067 LL | #[no_main] struct S;
1070 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1071 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:709:5
1073 LL | #[no_main] type T = S;
1076 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1077 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:712:5
1079 LL | #[no_main] impl S { }
1082 warning: crate-level attribute should be in the root module
1083 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:719:17
1085 LL | mod inner { #![no_builtins] }
1088 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1089 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:722:5
1091 LL | #[no_builtins] fn f() { }
1094 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1095 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:725:5
1097 LL | #[no_builtins] struct S;
1100 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1101 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:728:5
1103 LL | #[no_builtins] type T = S;
1106 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1107 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:731:5
1109 LL | #[no_builtins] impl S { }
1112 warning: crate-level attribute should be in the root module
1113 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:738:17
1115 LL | mod inner { #![recursion_limit="0200"] }
1116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
1118 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1119 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:741:5
1121 LL | #[recursion_limit="0200"] fn f() { }
1122 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1124 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1125 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:744:5
1127 LL | #[recursion_limit="0200"] struct S;
1128 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1130 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1131 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:747:5
1133 LL | #[recursion_limit="0200"] type T = S;
1134 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1136 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1137 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:750:5
1139 LL | #[recursion_limit="0200"] impl S { }
1140 | ^^^^^^^^^^^^^^^^^^^^^^^^^
1142 warning: crate-level attribute should be in the root module
1143 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:757:17
1145 LL | mod inner { #![type_length_limit="0100"] }
1146 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1148 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1149 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:760:5
1151 LL | #[type_length_limit="0100"] fn f() { }
1152 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1154 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1155 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:763:5
1157 LL | #[type_length_limit="0100"] struct S;
1158 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1160 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1161 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:766:5
1163 LL | #[type_length_limit="0100"] type T = S;
1164 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1166 warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
1167 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:769:5
1169 LL | #[type_length_limit="0100"] impl S { }
1170 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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:91:12
1175 LL | #![feature(rust1)]
1178 = note: `#[warn(stable_features)]` on by default
1180 warning: 173 warnings emitted