|
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
|
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:391:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:397:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![macro_escape] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
@@ -7,7 +7,7 @@ LL | mod inner { #![macro_escape] }
|
|
|
|
|
= help: try an outer attribute: `#[macro_use]`
|
|
|
|
|
|
|
|
|
|
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:388:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:394:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[macro_escape]
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
@@ -198,14 +198,14 @@ note: the lint level is defined here
|
|
|
|
|
LL | #![warn(unused_attributes, unknown_lints)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on implementation blocks
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on trait implementation blocks
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:257:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[automatically_derived]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a free function, impl method or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:275:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:281:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
@@ -220,31 +220,31 @@ LL | | }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: `#[should_panic]` only has an effect on functions
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:315:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:321:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[should_panic]
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[ignore]` only has an effect on functions
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:333:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:339:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[ignore]
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:368:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:374:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[reexport_test_harness_main = "2900"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:408:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:414:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_std]
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a function definition
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:444:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:450:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[cold]
|
|
|
|
|
| ^^^^^^^
|
|
|
|
|
@@ -260,7 +260,7 @@ LL | | }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a foreign function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:473:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:479:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_name = "1900"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
@@ -276,7 +276,7 @@ LL | | }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:512:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:518:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_section = "1800"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
@@ -292,7 +292,7 @@ LL | | }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to an `extern` block with non-Rust ABI
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:544:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:550:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[link()]
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
@@ -308,55 +308,55 @@ LL | | }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: `#[must_use]` has no effect when applied to a module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:595:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:601:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[must_use]
|
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:608:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:614:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[windows_subsystem = "windows"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:629:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:635:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[crate_name = "0900"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:648:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:654:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[crate_type = "0800"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:667:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:673:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[feature(x0600)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:687:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:693:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_main]
|
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:706:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:712:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_builtins]
|
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:725:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:731:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[recursion_limit="0200"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:744:1
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:750:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[type_length_limit="0100"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
@@ -495,32 +495,44 @@ warning: `#[path]` only has an effect on modules
|
|
|
|
|
LL | #[path = "3800"] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on implementation blocks
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on trait implementation blocks
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:260:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![automatically_derived] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on implementation blocks
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on trait implementation blocks
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:263:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[automatically_derived] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on implementation blocks
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on trait implementation blocks
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:266:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[automatically_derived] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on implementation blocks
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on trait implementation blocks
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:269:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[automatically_derived] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on trait implementation blocks
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:272:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[automatically_derived] trait W { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[automatically_derived]` only has an effect on trait implementation blocks
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:275:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[automatically_derived] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a free function, impl method or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:280:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:286:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![no_mangle] }
|
|
|
|
|
| ------------^^^^^^^^^^^^^-- not a free function, impl method or static
|
|
|
|
|
@@ -528,7 +540,7 @@ LL | mod inner { #![no_mangle] }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a free function, impl method or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:287:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:293:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_mangle] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^ --------- not a free function, impl method or static
|
|
|
|
|
@@ -536,7 +548,7 @@ LL | #[no_mangle] struct S;
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a free function, impl method or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:292:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:298:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_mangle] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^ ----------- not a free function, impl method or static
|
|
|
|
|
@@ -544,7 +556,7 @@ LL | #[no_mangle] type T = S;
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a free function, impl method or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:297:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:303:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_mangle] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^ ---------- not a free function, impl method or static
|
|
|
|
|
@@ -552,7 +564,7 @@ LL | #[no_mangle] impl S { }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a free function, impl method or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:303:9
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:309:9
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_mangle] fn foo();
|
|
|
|
|
| ^^^^^^^^^^^^ --------- not a free function, impl method or static
|
|
|
|
|
@@ -560,7 +572,7 @@ LL | #[no_mangle] fn foo();
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a free function, impl method or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:308:9
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:314:9
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_mangle] fn bar() {}
|
|
|
|
|
| ^^^^^^^^^^^^ ----------- not a free function, impl method or static
|
|
|
|
|
@@ -568,163 +580,163 @@ LL | #[no_mangle] fn bar() {}
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: `#[should_panic]` only has an effect on functions
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:318:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:324:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![should_panic] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[should_panic]` only has an effect on functions
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:323:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:329:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[should_panic] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[should_panic]` only has an effect on functions
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:326:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:332:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[should_panic] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[should_panic]` only has an effect on functions
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:329:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:335:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[should_panic] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[ignore]` only has an effect on functions
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:336:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:342:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![ignore] }
|
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[ignore]` only has an effect on functions
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:341:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:347:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[ignore] struct S;
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[ignore]` only has an effect on functions
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:344:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:350:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[ignore] type T = S;
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[ignore]` only has an effect on functions
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:347:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:353:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[ignore] impl S { }
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[no_implicit_prelude]` only has an effect on modules
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:355:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:361:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_implicit_prelude] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[no_implicit_prelude]` only has an effect on modules
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:358:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:364:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_implicit_prelude] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[no_implicit_prelude]` only has an effect on modules
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:361:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:367:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_implicit_prelude] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[no_implicit_prelude]` only has an effect on modules
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:364:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:370:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_implicit_prelude] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be in the root module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:371:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:377:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![reexport_test_harness_main="2900"] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:374:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:380:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[reexport_test_harness_main = "2900"] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:377:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:383:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[reexport_test_harness_main = "2900"] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:380:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:386:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[reexport_test_harness_main = "2900"] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:383:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:389:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[reexport_test_harness_main = "2900"] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[macro_escape]` only has an effect on `extern crate` and modules
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:395:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:401:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[macro_escape] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[macro_escape]` only has an effect on `extern crate` and modules
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:398:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:404:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[macro_escape] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[macro_escape]` only has an effect on `extern crate` and modules
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:401:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:407:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[macro_escape] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[macro_escape]` only has an effect on `extern crate` and modules
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:404:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:410:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[macro_escape] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be in the root module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:411:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:417:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![no_std] }
|
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:414:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:420:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_std] fn f() { }
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:417:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:423:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_std] struct S;
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:420:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:426:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_std] type T = S;
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:423:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:429:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_std] impl S { }
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a function definition
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:450:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:456:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![cold] }
|
|
|
|
|
| ------------^^^^^^^^-- not a function definition
|
|
|
|
|
@@ -732,7 +744,7 @@ LL | mod inner { #![cold] }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a function definition
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:457:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:463:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[cold] struct S;
|
|
|
|
|
| ^^^^^^^ --------- not a function definition
|
|
|
|
|
@@ -740,7 +752,7 @@ LL | #[cold] struct S;
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a function definition
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:462:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:468:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[cold] type T = S;
|
|
|
|
|
| ^^^^^^^ ----------- not a function definition
|
|
|
|
|
@@ -748,7 +760,7 @@ LL | #[cold] type T = S;
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a function definition
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:467:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:473:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[cold] impl S { }
|
|
|
|
|
| ^^^^^^^ ---------- not a function definition
|
|
|
|
|
@@ -756,7 +768,7 @@ LL | #[cold] impl S { }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a foreign function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:479:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:485:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_name = "1900"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
@@ -766,13 +778,13 @@ LL | extern "C" { }
|
|
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
help: try `#[link(name = "1900")]` instead
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:479:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:485:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_name = "1900"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a foreign function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:486:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:492:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![link_name="1900"] }
|
|
|
|
|
| ------------^^^^^^^^^^^^^^^^^^^^-- not a foreign function or static
|
|
|
|
|
@@ -780,7 +792,7 @@ LL | mod inner { #![link_name="1900"] }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a foreign function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:491:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:497:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_name = "1900"] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ ---------- not a foreign function or static
|
|
|
|
|
@@ -788,7 +800,7 @@ LL | #[link_name = "1900"] fn f() { }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a foreign function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:496:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:502:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_name = "1900"] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ --------- not a foreign function or static
|
|
|
|
|
@@ -796,7 +808,7 @@ LL | #[link_name = "1900"] struct S;
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a foreign function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:501:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:507:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_name = "1900"] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ ----------- not a foreign function or static
|
|
|
|
|
@@ -804,7 +816,7 @@ LL | #[link_name = "1900"] type T = S;
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a foreign function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:506:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:512:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_name = "1900"] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ ---------- not a foreign function or static
|
|
|
|
|
@@ -812,7 +824,7 @@ LL | #[link_name = "1900"] impl S { }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:518:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:524:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![link_section="1800"] }
|
|
|
|
|
| ------------^^^^^^^^^^^^^^^^^^^^^^^-- not a function or static
|
|
|
|
|
@@ -820,7 +832,7 @@ LL | mod inner { #![link_section="1800"] }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:525:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:531:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_section = "1800"] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ --------- not a function or static
|
|
|
|
|
@@ -828,7 +840,7 @@ LL | #[link_section = "1800"] struct S;
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:530:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:536:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_section = "1800"] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a function or static
|
|
|
|
|
@@ -836,7 +848,7 @@ LL | #[link_section = "1800"] type T = S;
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to a function or static
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:535:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:541:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link_section = "1800"] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a function or static
|
|
|
|
|
@@ -844,7 +856,7 @@ LL | #[link_section = "1800"] impl S { }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to an `extern` block with non-Rust ABI
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:550:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:556:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![link()] }
|
|
|
|
|
| ------------^^^^^^^^^^-- not an `extern` block
|
|
|
|
|
@@ -852,7 +864,7 @@ LL | mod inner { #![link()] }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to an `extern` block with non-Rust ABI
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:555:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:561:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link()] fn f() { }
|
|
|
|
|
| ^^^^^^^^^ ---------- not an `extern` block
|
|
|
|
|
@@ -860,7 +872,7 @@ LL | #[link()] fn f() { }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to an `extern` block with non-Rust ABI
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:560:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:566:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link()] struct S;
|
|
|
|
|
| ^^^^^^^^^ --------- not an `extern` block
|
|
|
|
|
@@ -868,7 +880,7 @@ LL | #[link()] struct S;
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to an `extern` block with non-Rust ABI
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:565:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:571:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link()] type T = S;
|
|
|
|
|
| ^^^^^^^^^ ----------- not an `extern` block
|
|
|
|
|
@@ -876,7 +888,7 @@ LL | #[link()] type T = S;
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to an `extern` block with non-Rust ABI
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:570:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:576:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link()] impl S { }
|
|
|
|
|
| ^^^^^^^^^ ---------- not an `extern` block
|
|
|
|
|
@@ -884,7 +896,7 @@ LL | #[link()] impl S { }
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: attribute should be applied to an `extern` block with non-Rust ABI
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:575:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:581:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[link()] extern "Rust" {}
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
@@ -892,259 +904,259 @@ LL | #[link()] extern "Rust" {}
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
|
|
|
|
|
warning: `#[must_use]` has no effect when applied to a module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:597:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:603:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![must_use] }
|
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[must_use]` has no effect when applied to a type alias
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:603:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:609:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[must_use] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: `#[must_use]` has no effect when applied to an implementation block
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:605:5
|
|
|
|
|
warning: `#[must_use]` has no effect when applied to an inherent implementation block
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:611:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[must_use] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be in the root module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:611:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:617:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![windows_subsystem="windows"] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:614:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:620:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[windows_subsystem = "windows"] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:617:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:623:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[windows_subsystem = "windows"] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:620:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:626:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[windows_subsystem = "windows"] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:623:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:629:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[windows_subsystem = "windows"] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be in the root module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:632:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:638:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![crate_name="0900"] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:635:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:641:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[crate_name = "0900"] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:638:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:644:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[crate_name = "0900"] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:641:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:647:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[crate_name = "0900"] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:644:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:650:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[crate_name = "0900"] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be in the root module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:651:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:657:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![crate_type="0800"] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:654:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:660:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[crate_type = "0800"] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:657:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:663:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[crate_type = "0800"] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:660:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:666:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[crate_type = "0800"] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:663:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:669:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[crate_type = "0800"] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be in the root module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:670:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:676:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![feature(x0600)] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:673:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:679:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[feature(x0600)] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:676:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:682:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[feature(x0600)] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:679:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:685:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[feature(x0600)] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:682:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:688:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[feature(x0600)] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be in the root module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:690:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:696:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![no_main] }
|
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:693:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:699:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_main] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:696:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:702:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_main] struct S;
|
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:699:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:705:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_main] type T = S;
|
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:702:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:708:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_main] impl S { }
|
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be in the root module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:709:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:715:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![no_builtins] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:712:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:718:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_builtins] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:715:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:721:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_builtins] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:718:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:724:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_builtins] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:721:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:727:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[no_builtins] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be in the root module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:728:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:734:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![recursion_limit="0200"] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:731:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:737:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[recursion_limit="0200"] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:734:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:740:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[recursion_limit="0200"] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:737:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:743:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[recursion_limit="0200"] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:740:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:746:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[recursion_limit="0200"] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be in the root module
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:747:17
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:753:17
|
|
|
|
|
|
|
|
|
|
|
LL | mod inner { #![type_length_limit="0100"] }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:750:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:756:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[type_length_limit="0100"] fn f() { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:753:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:759:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[type_length_limit="0100"] struct S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:756:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:762:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[type_length_limit="0100"] type T = S;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:759:5
|
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:765:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[type_length_limit="0100"] impl S { }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
@@ -1157,5 +1169,5 @@ LL | #![feature(rust1)]
|
|
|
|
|
|
|
|
|
|
|
= note: `#[warn(stable_features)]` on by default
|
|
|
|
|
|
|
|
|
|
warning: 171 warnings emitted
|
|
|
|
|
warning: 173 warnings emitted
|
|
|
|
|
|
|
|
|
|
|