@@ -240,17 +240,6 @@ help: add a `!`
240240LL | #![feature(x0600)]
241241 | +
242242
243- warning: crate-level attribute should be an inner attribute
244- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:885:1
245- |
246- LL | #[no_main]
247- | ^^^^^^^^^^
248- |
249- help: add a `!`
250- |
251- LL | #![no_main]
252- | +
253-
254243warning: crate-level attribute should be an inner attribute
255244 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:909:1
256245 |
@@ -476,56 +465,6 @@ help: add a `!`
476465LL | #![feature(x0600)] impl S { }
477466 | +
478467
479- warning: crate-level attribute should be in the root module
480- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:889:17
481- |
482- LL | mod inner { #![no_main] }
483- | ^^^^^^^^^^^
484-
485- warning: crate-level attribute should be an inner attribute
486- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:892:5
487- |
488- LL | #[no_main] fn f() { }
489- | ^^^^^^^^^^
490- |
491- help: add a `!`
492- |
493- LL | #![no_main] fn f() { }
494- | +
495-
496- warning: crate-level attribute should be an inner attribute
497- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:896:5
498- |
499- LL | #[no_main] struct S;
500- | ^^^^^^^^^^
501- |
502- help: add a `!`
503- |
504- LL | #![no_main] struct S;
505- | +
506-
507- warning: crate-level attribute should be an inner attribute
508- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:900:5
509- |
510- LL | #[no_main] type T = S;
511- | ^^^^^^^^^^
512- |
513- help: add a `!`
514- |
515- LL | #![no_main] type T = S;
516- | +
517-
518- warning: crate-level attribute should be an inner attribute
519- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:904:5
520- |
521- LL | #[no_main] impl S { }
522- | ^^^^^^^^^^
523- |
524- help: add a `!`
525- |
526- LL | #![no_main] impl S { }
527- | +
528-
529468warning: crate-level attribute should be in the root module
530469 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:913:17
531470 |
@@ -1407,6 +1346,76 @@ note: This attribute does not have an `!`, which means it is applied to this imp
14071346LL | #[crate_name = "0900"] impl S { }
14081347 | ^^^^^^^^^^
14091348
1349+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_main]`
1350+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:885:1
1351+ |
1352+ LL | #[no_main]
1353+ | ^^^^^^^^^^
1354+ |
1355+ note: This attribute does not have an `!`, which means it is applied to this module
1356+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:887:1
1357+ |
1358+ LL | / mod no_main_1 {
1359+ LL | |
1360+ LL | | mod inner { #![no_main] }
1361+ ... |
1362+ LL | | }
1363+ | |_^
1364+
1365+ warning: the `#![no_main]` attribute can only be used at the crate root
1366+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:889:17
1367+ |
1368+ LL | mod inner { #![no_main] }
1369+ | ^^^^^^^^^^^
1370+
1371+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_main]`
1372+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:892:5
1373+ |
1374+ LL | #[no_main] fn f() { }
1375+ | ^^^^^^^^^^
1376+ |
1377+ note: This attribute does not have an `!`, which means it is applied to this function
1378+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:892:16
1379+ |
1380+ LL | #[no_main] fn f() { }
1381+ | ^^^^^^^^^^
1382+
1383+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_main]`
1384+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:896:5
1385+ |
1386+ LL | #[no_main] struct S;
1387+ | ^^^^^^^^^^
1388+ |
1389+ note: This attribute does not have an `!`, which means it is applied to this struct
1390+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:896:16
1391+ |
1392+ LL | #[no_main] struct S;
1393+ | ^^^^^^^^^
1394+
1395+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_main]`
1396+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:900:5
1397+ |
1398+ LL | #[no_main] type T = S;
1399+ | ^^^^^^^^^^
1400+ |
1401+ note: This attribute does not have an `!`, which means it is applied to this type alias
1402+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:900:16
1403+ |
1404+ LL | #[no_main] type T = S;
1405+ | ^^^^^^^^^^^
1406+
1407+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_main]`
1408+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:904:5
1409+ |
1410+ LL | #[no_main] impl S { }
1411+ | ^^^^^^^^^^
1412+ |
1413+ note: This attribute does not have an `!`, which means it is applied to this implementation block
1414+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:904:16
1415+ |
1416+ LL | #[no_main] impl S { }
1417+ | ^^^^^^^^^^
1418+
14101419warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![recursion_limit]`
14111420 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:933:1
14121421 |
0 commit comments