@@ -209,17 +209,6 @@ help: add a `!`
209209LL | #![reexport_test_harness_main = "2900"]
210210 | +
211211
212- warning: crate-level attribute should be an inner attribute
213- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:540:1
214- |
215- LL | #[no_std]
216- | ^^^^^^^^^
217- |
218- help: add a `!`
219- |
220- LL | #![no_std]
221- | +
222-
223212warning: attribute should be applied to an `extern` block with non-Rust ABI
224213 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:695:1
225214 |
@@ -387,56 +376,6 @@ help: add a `!`
387376LL | #![reexport_test_harness_main = "2900"] impl S { }
388377 | +
389378
390- warning: crate-level attribute should be in the root module
391- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:544:17
392- |
393- LL | mod inner { #![no_std] }
394- | ^^^^^^^^^^
395-
396- warning: crate-level attribute should be an inner attribute
397- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:547:5
398- |
399- LL | #[no_std] fn f() { }
400- | ^^^^^^^^^
401- |
402- help: add a `!`
403- |
404- LL | #![no_std] fn f() { }
405- | +
406-
407- warning: crate-level attribute should be an inner attribute
408- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:551:5
409- |
410- LL | #[no_std] struct S;
411- | ^^^^^^^^^
412- |
413- help: add a `!`
414- |
415- LL | #![no_std] struct S;
416- | +
417-
418- warning: crate-level attribute should be an inner attribute
419- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:555:5
420- |
421- LL | #[no_std] type T = S;
422- | ^^^^^^^^^
423- |
424- help: add a `!`
425- |
426- LL | #![no_std] type T = S;
427- | +
428-
429- warning: crate-level attribute should be an inner attribute
430- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:559:5
431- |
432- LL | #[no_std] impl S { }
433- | ^^^^^^^^^
434- |
435- help: add a `!`
436- |
437- LL | #![no_std] impl S { }
438- | +
439-
440379warning: attribute should be applied to an `extern` block with non-Rust ABI
441380 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:701:17
442381 |
@@ -1095,6 +1034,76 @@ LL | #[macro_escape] impl S { }
10951034 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
10961035 = help: `#[macro_escape]` can be applied to modules, extern crates, and crates
10971036
1037+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_std]`
1038+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:540:1
1039+ |
1040+ LL | #[no_std]
1041+ | ^^^^^^^^^
1042+ |
1043+ note: This attribute does not have an `!`, which means it is applied to this module
1044+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:542:1
1045+ |
1046+ LL | / mod no_std {
1047+ LL | |
1048+ LL | | mod inner { #![no_std] }
1049+ ... |
1050+ LL | | }
1051+ | |_^
1052+
1053+ warning: the `#![no_std]` attribute can only be used at the crate root
1054+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:544:17
1055+ |
1056+ LL | mod inner { #![no_std] }
1057+ | ^^^^^^^^^^
1058+
1059+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_std]`
1060+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:547:5
1061+ |
1062+ LL | #[no_std] fn f() { }
1063+ | ^^^^^^^^^
1064+ |
1065+ note: This attribute does not have an `!`, which means it is applied to this function
1066+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:547:15
1067+ |
1068+ LL | #[no_std] fn f() { }
1069+ | ^^^^^^^^^^
1070+
1071+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_std]`
1072+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:551:5
1073+ |
1074+ LL | #[no_std] struct S;
1075+ | ^^^^^^^^^
1076+ |
1077+ note: This attribute does not have an `!`, which means it is applied to this struct
1078+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:551:15
1079+ |
1080+ LL | #[no_std] struct S;
1081+ | ^^^^^^^^^
1082+
1083+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_std]`
1084+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:555:5
1085+ |
1086+ LL | #[no_std] type T = S;
1087+ | ^^^^^^^^^
1088+ |
1089+ note: This attribute does not have an `!`, which means it is applied to this type alias
1090+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:555:15
1091+ |
1092+ LL | #[no_std] type T = S;
1093+ | ^^^^^^^^^^^
1094+
1095+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_std]`
1096+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:559:5
1097+ |
1098+ LL | #[no_std] impl S { }
1099+ | ^^^^^^^^^
1100+ |
1101+ note: This attribute does not have an `!`, which means it is applied to this implementation block
1102+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:559:15
1103+ |
1104+ LL | #[no_std] impl S { }
1105+ | ^^^^^^^^^^
1106+
10981107warning: `#[cold]` attribute cannot be used on modules
10991108 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:581:1
11001109 |
0 commit comments