@@ -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:909:1
245- |
246- LL | #[no_builtins]
247- | ^^^^^^^^^^^^^^
248- |
249- help: add a `!`
250- |
251- LL | #![no_builtins]
252- | +
253-
254243warning: attribute should be applied to an `extern` block with non-Rust ABI
255244 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:71:1
256245 |
@@ -465,56 +454,6 @@ help: add a `!`
465454LL | #![feature(x0600)] impl S { }
466455 | +
467456
468- warning: crate-level attribute should be in the root module
469- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:913:17
470- |
471- LL | mod inner { #![no_builtins] }
472- | ^^^^^^^^^^^^^^^
473-
474- warning: crate-level attribute should be an inner attribute
475- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:916:5
476- |
477- LL | #[no_builtins] fn f() { }
478- | ^^^^^^^^^^^^^^
479- |
480- help: add a `!`
481- |
482- LL | #![no_builtins] fn f() { }
483- | +
484-
485- warning: crate-level attribute should be an inner attribute
486- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:920:5
487- |
488- LL | #[no_builtins] struct S;
489- | ^^^^^^^^^^^^^^
490- |
491- help: add a `!`
492- |
493- LL | #![no_builtins] struct S;
494- | +
495-
496- warning: crate-level attribute should be an inner attribute
497- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:924:5
498- |
499- LL | #[no_builtins] type T = S;
500- | ^^^^^^^^^^^^^^
501- |
502- help: add a `!`
503- |
504- LL | #![no_builtins] type T = S;
505- | +
506-
507- warning: crate-level attribute should be an inner attribute
508- --> $DIR/issue-43106-gating-of-builtin-attrs.rs:928:5
509- |
510- LL | #[no_builtins] impl S { }
511- | ^^^^^^^^^^^^^^
512- |
513- help: add a `!`
514- |
515- LL | #![no_builtins] impl S { }
516- | +
517-
518457warning: `#[macro_use]` attribute cannot be used on functions
519458 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:190:5
520459 |
@@ -1416,6 +1355,76 @@ note: this attribute does not have an `!`, which means it is applied to this imp
14161355LL | #[no_main] impl S { }
14171356 | ^^^^^^^^^^
14181357
1358+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_builtins]`
1359+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:909:1
1360+ |
1361+ LL | #[no_builtins]
1362+ | ^^^^^^^^^^^^^^
1363+ |
1364+ note: this attribute does not have an `!`, which means it is applied to this module
1365+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:911:1
1366+ |
1367+ LL | / mod no_builtins {
1368+ LL | |
1369+ LL | | mod inner { #![no_builtins] }
1370+ ... |
1371+ LL | | }
1372+ | |_^
1373+
1374+ warning: the `#![no_builtins]` attribute can only be used at the crate root
1375+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:913:17
1376+ |
1377+ LL | mod inner { #![no_builtins] }
1378+ | ^^^^^^^^^^^^^^^
1379+
1380+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_builtins]`
1381+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:916:5
1382+ |
1383+ LL | #[no_builtins] fn f() { }
1384+ | ^^^^^^^^^^^^^^
1385+ |
1386+ note: this attribute does not have an `!`, which means it is applied to this function
1387+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:916:20
1388+ |
1389+ LL | #[no_builtins] fn f() { }
1390+ | ^^^^^^^^^^
1391+
1392+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_builtins]`
1393+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:920:5
1394+ |
1395+ LL | #[no_builtins] struct S;
1396+ | ^^^^^^^^^^^^^^
1397+ |
1398+ note: this attribute does not have an `!`, which means it is applied to this struct
1399+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:920:20
1400+ |
1401+ LL | #[no_builtins] struct S;
1402+ | ^^^^^^^^^
1403+
1404+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_builtins]`
1405+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:924:5
1406+ |
1407+ LL | #[no_builtins] type T = S;
1408+ | ^^^^^^^^^^^^^^
1409+ |
1410+ note: this attribute does not have an `!`, which means it is applied to this type alias
1411+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:924:20
1412+ |
1413+ LL | #[no_builtins] type T = S;
1414+ | ^^^^^^^^^^^
1415+
1416+ warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_builtins]`
1417+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:928:5
1418+ |
1419+ LL | #[no_builtins] impl S { }
1420+ | ^^^^^^^^^^^^^^
1421+ |
1422+ note: this attribute does not have an `!`, which means it is applied to this implementation block
1423+ --> $DIR/issue-43106-gating-of-builtin-attrs.rs:928:20
1424+ |
1425+ LL | #[no_builtins] impl S { }
1426+ | ^^^^^^^^^^
1427+
14191428warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![recursion_limit]`
14201429 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:933:1
14211430 |
0 commit comments