@@ -207,17 +207,6 @@ note: the lint level is defined here
207207LL | #![warn(unused_attributes, unknown_lints)]
208208 | ^^^^^^^^^^^^^^^^^
209209
210- warning: crate-level attribute should be an inner attribute
211- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:860:1
212- |
213- LL | #[feature(x0600)]
214- | ^^^^^^^^^^^^^^^^^
215- |
216- help: add a `!`
217- |
218- LL | #![feature(x0600)]
219- | +
220-
221210warning: attribute should be applied to an `extern` block with non-Rust ABI
222211 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:71:1
223212 |
@@ -282,56 +271,6 @@ LL | #[link(name = "x")] extern "Rust" {}
282271 |
283272 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
284273
285- warning: crate-level attribute should be in the root module
286- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:864:17
287- |
288- LL | mod inner { #![feature(x0600)] }
289- | ^^^^^^^^^^^^^^^^^^
290-
291- warning: crate-level attribute should be an inner attribute
292- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:867:5
293- |
294- LL | #[feature(x0600)] fn f() { }
295- | ^^^^^^^^^^^^^^^^^
296- |
297- help: add a `!`
298- |
299- LL | #![feature(x0600)] fn f() { }
300- | +
301-
302- warning: crate-level attribute should be an inner attribute
303- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:871:5
304- |
305- LL | #[feature(x0600)] struct S;
306- | ^^^^^^^^^^^^^^^^^
307- |
308- help: add a `!`
309- |
310- LL | #![feature(x0600)] struct S;
311- | +
312-
313- warning: crate-level attribute should be an inner attribute
314- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:875:5
315- |
316- LL | #[feature(x0600)] type T = S;
317- | ^^^^^^^^^^^^^^^^^
318- |
319- help: add a `!`
320- |
321- LL | #![feature(x0600)] type T = S;
322- | +
323-
324- warning: crate-level attribute should be an inner attribute
325- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:879:5
326- |
327- LL | #[feature(x0600)] impl S { }
328- | ^^^^^^^^^^^^^^^^^
329- |
330- help: add a `!`
331- |
332- LL | #![feature(x0600)] impl S { }
333- | +
334-
335274warning: `#[macro_use]` attribute cannot be used on functions
336275 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:190:5
337276 |
@@ -1303,6 +1242,76 @@ note: this attribute does not have an `!`, which means it is applied to this imp
13031242LL | #[crate_type = "0800"] impl S { }
13041243 | ^^^^^^^^^^
13051244
1245+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![feature]`
1246+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:860:1
1247+ |
1248+ LL | #[feature(x0600)]
1249+ | ^^^^^^^^^^^^^^^^^
1250+ |
1251+ note: this attribute does not have an `!`, which means it is applied to this module
1252+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:862:1
1253+ |
1254+ LL | / mod feature {
1255+ LL | |
1256+ LL | | mod inner { #![feature(x0600)] }
1257+ ... |
1258+ LL | | }
1259+ | |_^
1260+
1261+ warning: the `#![feature]` attribute can only be used at the crate root
1262+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:864:17
1263+ |
1264+ LL | mod inner { #![feature(x0600)] }
1265+ | ^^^^^^^^^^^^^^^^^^
1266+
1267+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![feature]`
1268+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:867:5
1269+ |
1270+ LL | #[feature(x0600)] fn f() { }
1271+ | ^^^^^^^^^^^^^^^^^
1272+ |
1273+ note: this attribute does not have an `!`, which means it is applied to this function
1274+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:867:23
1275+ |
1276+ LL | #[feature(x0600)] fn f() { }
1277+ | ^^^^^^^^^^
1278+
1279+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![feature]`
1280+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:871:5
1281+ |
1282+ LL | #[feature(x0600)] struct S;
1283+ | ^^^^^^^^^^^^^^^^^
1284+ |
1285+ note: this attribute does not have an `!`, which means it is applied to this struct
1286+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:871:23
1287+ |
1288+ LL | #[feature(x0600)] struct S;
1289+ | ^^^^^^^^^
1290+
1291+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![feature]`
1292+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:875:5
1293+ |
1294+ LL | #[feature(x0600)] type T = S;
1295+ | ^^^^^^^^^^^^^^^^^
1296+ |
1297+ note: this attribute does not have an `!`, which means it is applied to this type alias
1298+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:875:23
1299+ |
1300+ LL | #[feature(x0600)] type T = S;
1301+ | ^^^^^^^^^^^
1302+
1303+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![feature]`
1304+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:879:5
1305+ |
1306+ LL | #[feature(x0600)] impl S { }
1307+ | ^^^^^^^^^^^^^^^^^
1308+ |
1309+ note: this attribute does not have an `!`, which means it is applied to this implementation block
1310+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:879:23
1311+ |
1312+ LL | #[feature(x0600)] impl S { }
1313+ | ^^^^^^^^^^
1314+
13061315warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_main]`
13071316 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:885:1
13081317 |
0 commit comments