Skip to content

Parallelize emitting delayed lints - #164750

Draft
aerooneqq wants to merge 2 commits into
rust-lang:mainfrom
aerooneqq:some-parallelization
Draft

aerooneqq wants to merge 2 commits into
rust-lang:mainfrom
aerooneqq:some-parallelization

Conversation

@aerooneqq

Copy link
Copy Markdown
Contributor

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 22, 2026
@aerooneqq

Copy link
Copy Markdown
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 22, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 22, 2026
@rust-bors

rust-bors Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 467bc40 (467bc408efd55fdad2d8659e1467b0336eaf9aed)
Base parent: afe686d (afe686de2708699b69dd31ed14be326f4e95edfc)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (467bc40): comparison URL.

Overall result: ❌ regressions - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.4% [0.4%, 0.4%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary 0.5%, secondary 1.4%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
1.2% [0.4%, 2.5%] 18
Regressions ❌
(secondary)
2.0% [0.5%, 5.1%] 13
Improvements ✅
(primary)
-1.4% [-2.4%, -0.5%] 6
Improvements ✅
(secondary)
-2.1% [-2.5%, -1.6%] 2
All ❌✅ (primary) 0.5% [-2.4%, 2.5%] 24

Cycles

Results (primary -0.5%, secondary 0.3%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.7% [0.5%, 1.0%] 5
Regressions ❌
(secondary)
1.0% [0.5%, 1.4%] 5
Improvements ✅
(primary)
-1.2% [-2.9%, -0.4%] 9
Improvements ✅
(secondary)
-1.2% [-2.0%, -0.4%] 2
All ❌✅ (primary) -0.5% [-2.9%, 1.0%] 14

Binary size

Results (primary 0.0%, secondary 0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.0% [0.0%, 0.0%] 1
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.0% [0.0%, 0.0%] 1

Bootstrap: 486.908s -> 488.518s (0.33%)
Artifact size: 406.54 MiB -> 406.64 MiB (0.03%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 22, 2026
@aerooneqq
aerooneqq force-pushed the some-parallelization branch from d03d55c to c35c960 Compare October 29, 2026 10:37
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-aarch64-gnu-llvm-22-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
20   --> $DIR/doc-attr.rs:10:7
21    |

51    |
52 LL | #[doc(foo::bar, crate::bar::baz = "bye")]
53    |                 ^^^^^^^^^^^^^^^
+ 
+ error: unknown `doc` attribute `as_ptr`
+   --> $DIR/doc-attr.rs:3:8
+    |
---
To only update this specific test, also pass `--test-args attributes/doc-attr.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/attributes/doc-attr.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/attributes/doc-attr" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015"
stdout: none
--- stderr -------------------------------
error: unknown `doc` attribute `as_ptr`
##[error]  --> /checkout/tests/ui/attributes/doc-attr.rs:6:7
   |
---

error: expected this to be of the form `... = "..."`
##[error]  --> /checkout/tests/ui/attributes/doc-attr.rs:13:7
   |
LL | #[doc("hello", "bar")]
   |       ^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: expected this to be of the form `... = "..."`
##[error]  --> /checkout/tests/ui/attributes/doc-attr.rs:13:16
   |
LL | #[doc("hello", "bar")]
   |                ^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: unknown `doc` attribute `foo::bar`
##[error]  --> /checkout/tests/ui/attributes/doc-attr.rs:18:7
   |
LL | #[doc(foo::bar, crate::bar::baz = "bye")]
   |       ^^^^^^^^

error: unknown `doc` attribute `crate::bar::baz`
##[error]  --> /checkout/tests/ui/attributes/doc-attr.rs:18:17
   |
LL | #[doc(foo::bar, crate::bar::baz = "bye")]
   |                 ^^^^^^^^^^^^^^^

error: unknown `doc` attribute `as_ptr`
##[error]  --> /checkout/tests/ui/attributes/doc-attr.rs:3:8
   |
---
To only update this specific test, also pass `--test-args attributes/malformed-no-std.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/attributes/malformed-no-std.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/attributes/malformed-no-std" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015"
stdout: none
--- stderr -------------------------------
error[E0565]: malformed `no_std` attribute input
##[error]  --> /checkout/tests/ui/attributes/malformed-no-std.rs:3:4
   |
---

error[E0565]: malformed `no_std` attribute input
##[error]  --> /checkout/tests/ui/attributes/malformed-no-std.rs:5:4
   |
LL | #![no_std("bar")]
   |    ^^^^^^-------
   |          |
   |          didn't expect any arguments here
   |
help: must be of the form
   |
LL - #![no_std("bar")]
LL + #![no_std]
   |

error[E0565]: malformed `no_std` attribute input
##[error]  --> /checkout/tests/ui/attributes/malformed-no-std.rs:8:4
   |
LL | #![no_std(foo = "bar")]
   |    ^^^^^^-------------
   |          |
   |          didn't expect any arguments here
   |
help: must be of the form
   |
LL - #![no_std(foo = "bar")]
LL + #![no_std]
   |

error[E0565]: malformed `no_core` attribute input
##[error]  --> /checkout/tests/ui/attributes/malformed-no-std.rs:11:4
   |
---
   |           didn't expect any arguments here
   |
help: must be of the form
   |
LL - #![no_core("bar")]
LL + #![no_core]
   |

error: multiple `no_core` attributes
##[error]  --> /checkout/tests/ui/attributes/malformed-no-std.rs:13:1
   |
---

warning: unused attribute
##[warning]  --> /checkout/tests/ui/attributes/malformed-no-std.rs:5:1
   |
LL | #![no_std("bar")]
   | ^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/attributes/malformed-no-std.rs:3:1
   |
LL | #![no_std = "foo"]
   | ^^^^^^^^^^^^^^^^^^
   = note: requested on the command line with `-W unused-attributes`

warning: unused attribute
##[warning]  --> /checkout/tests/ui/attributes/malformed-no-std.rs:8:1
   |
LL | #![no_std(foo = "bar")]
   | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/attributes/malformed-no-std.rs:3:1
   |
---
-    | ^^^^^^^^^^^
-    |
-    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
-    = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
-    = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default
- 
347 error: valid forms for the attribute are `inline`, `inline(always)`, and `inline(never)`
348   --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:47:7
349    |

362    |
363    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
364    = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
+    = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default
365 
366 error: use of deprecated `no_link` attribute
367   --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:69:17

468    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
---

480    |
481    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
482    = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
-    = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default
484 
- Future breakage diagnostic:
+ error: aborting due to 47 previous errors; 6 warnings emitted
+ 
+ For more information about this error, try `rustc --explain E0658`.
---
589    |     ^^^^^^^^^^
+    |
+    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
+    = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default
+ 
+ Future breakage diagnostic:
+ error: use of deprecated `no_link` attribute
+   --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:30:1
+    |
---
Note: some mismatched output was normalized before being compared
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:16:1
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:24:4
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:30:1
+    = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default
+ warning: unused attribute
+   --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:16:1
+    |
+ LL | #![repr()]
+    | ^^^^^^^^^^ help: remove this attribute
+    |
---
+ Future incompatibility report: Future breakage diagnostic:
+    |
+    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+    = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
+    = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default
+ 
+ Future breakage diagnostic:
+ error: use of deprecated `no_link` attribute
+   --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:30:1
+    |
---
To only update this specific test, also pass `--test-args feature-gates/issue-43106-gating-of-builtin-attrs-error.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015"
stdout: none
--- stderr -------------------------------
error: the `macro_export` attribute cannot be used on crates
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:9:4
   |
---

error: the `inline` attribute cannot be used on modules
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:44:20
   |
LL |     mod inner { #![inline] }
   |                    ^^^^^^
   |
   = help: the `inline` attribute can only be applied to functions

error: the `inline` attribute cannot be used on structs
---

error: the `no_link` attribute cannot be used on modules
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:69:20
   |
LL |     mod inner { #![no_link] }
   |                    ^^^^^^^
   |
   = help: the `no_link` attribute can only be applied to extern crates

error: the `no_link` attribute cannot be used on functions
---

error: the `no_link` attribute cannot be used on type aliases
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:106:7
   |
LL |     #[no_link]type T = S;
   |       ^^^^^^^
   |
   = help: the `no_link` attribute can only be applied to extern crates

error: the `no_link` attribute cannot be used on inherent impl blocks
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:112:7
   |
LL |     #[no_link] impl S { }
   |       ^^^^^^^
   |
   = help: the `no_link` attribute can only be applied to extern crates

error: the `export_name` attribute cannot be used on modules
---

error: the `export_name` attribute cannot be used on modules
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:130:20
   |
LL |     mod inner { #![export_name="2200"] }
   |                    ^^^^^^^^^^^
   |
   = help: the `export_name` attribute can be applied to functions and statics

error: the `export_name` attribute cannot be used on structs
---

error: the `export_name` attribute cannot be used on type aliases
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:138:7
   |
LL |     #[export_name = "2200"] type T = S;
   |       ^^^^^^^^^^^
   |
   = help: the `export_name` attribute can be applied to functions and statics

error: the `export_name` attribute cannot be used on inherent impl blocks
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:141:7
   |
LL |     #[export_name = "2200"] impl S { }
   |       ^^^^^^^^^^^
   |
   = help: the `export_name` attribute can be applied to functions and statics

error: the `export_name` attribute cannot be used on required trait methods
---

error: the `repr(C)` attribute cannot be used on modules
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:155:20
   |
LL |     mod inner { #![repr(C)] }
   |                    ^^^^^^^
   |
   = help: the `repr(C)` attribute can only be applied to data types

error: the `repr(C)` attribute cannot be used on functions
---

error: the `repr(C)` attribute cannot be used on type aliases
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:163:7
   |
LL |     #[repr(C)] type T = S;
   |       ^^^^^^^
   |
   = help: the `repr(C)` attribute can only be applied to data types

error: the `repr(C)` attribute cannot be used on inherent impl blocks
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:166:7
   |
LL |     #[repr(C)] impl S { }
   |       ^^^^^^^
   |
   = help: the `repr(C)` attribute can only be applied to data types

error: the `repr(Rust)` attribute cannot be used on modules
---

error: the `repr(Rust)` attribute cannot be used on modules
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:174:20
   |
LL |     mod inner { #![repr(Rust)] }
   |                    ^^^^^^^^^^
   |
   = help: the `repr(Rust)` attribute can only be applied to data types

error: the `repr(Rust)` attribute cannot be used on functions
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:177:7
   |
LL |     #[repr(Rust)] fn f() { }
   |       ^^^^^^^^^^
   |
   = help: the `repr(Rust)` attribute can only be applied to data types

error: the `repr(Rust)` attribute cannot be used on type aliases
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:182:7
   |
LL |     #[repr(Rust)] type T = S;
   |       ^^^^^^^^^^
   |
   = help: the `repr(Rust)` attribute can only be applied to data types

error: the `repr(Rust)` attribute cannot be used on inherent impl blocks
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:185:7
   |
LL |     #[repr(Rust)] impl S { }
   |       ^^^^^^^^^^
   |
   = help: the `repr(Rust)` attribute can only be applied to data types

warning: `#[no_mangle]` attribute may not be used in combination with `#[export_name]`
---
   |       ^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
   = note: `#[deny(ill_formed_attribute_input)]` (part of `#[deny(future_incompatible)]`) on by default

error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:63:1
   |
LL | #[no_link]
   | ^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:69:17
   |
LL |     mod inner { #![no_link] }
   |                 ^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>

---

error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:106:5
   |
LL |     #[no_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!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>

error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:112:5
   |
LL |     #[no_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!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>

warning: the `no_link` attribute cannot be used on macro defs
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:118:7
   |
LL |     #[no_link]
   |       ^^^^^^^
...
LL |     macro_rules! m{() => {}}
   |
   = help: the `no_link` attribute can only be applied to extern crates
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: use of deprecated `no_link` attribute
---
   |       ^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
   = note: `#[deny(ill_formed_attribute_input)]` (part of `#[deny(future_incompatible)]`) on by default

Future breakage diagnostic:
error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:63:1
   |
LL | #[no_link]
   | ^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

Future breakage diagnostic:
error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:69:17
   |
LL |     mod inner { #![no_link] }
   |                 ^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

Future breakage diagnostic:
error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:75:5
   |
LL |     #[no_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!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

Future breakage diagnostic:
error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:81:13
   |
LL |             #[no_link]
   |             ^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

Future breakage diagnostic:
error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:91:5
   |
LL |     #[no_link]
   |     ^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

Future breakage diagnostic:
error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:97:9
   |
LL |         #[no_link]
   |         ^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

Future breakage diagnostic:
error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:106:5
   |
LL |     #[no_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!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

Future breakage diagnostic:
error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:112:5
   |
LL |     #[no_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!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

Future breakage diagnostic:
error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:118:5
   |
LL |     #[no_link]
   |     ^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

Future breakage diagnostic:
error: use of deprecated `no_link` attribute
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs:30:1
   |
LL | #![no_link]
   | ^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default
------------------------------------------

---- [ui] tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs stdout end ----
---- [ui] tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs/issue-43106-gating-of-builtin-attrs.stderr`
---
- 
- warning: the `link` attribute cannot be used on crates
-   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:72:4
-    |
- LL | #![link(name = "x")]
-    |    ^^^^
-    |
-    = help: the `link` attribute can only be applied to foreign modules
-    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
- 
---
- 
- warning: the `link_section` attribute cannot be used on crates
-   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:81:4
-    |
- LL | #![link_section = ",1800"]
-    |    ^^^^^^^^^^^^
-    |
-    = help: the `link_section` attribute can be applied to functions and statics
-    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
- 
---
292   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:192:7
293    |

1597    |
1598 LL |     #[type_length_limit="0100"] impl S { }
1599    |                                 ^^^^^^^^^^
+ 
+ warning: the `macro_use` attribute cannot be used on crates
+   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:45:4
+    |
---
+ 
+ warning: the `link` attribute cannot be used on crates
+   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:72:4
+    |
+ LL | #![link(name = "x")]
+    |    ^^^^
+    |
+    = help: the `link` attribute can only be applied to foreign modules
+    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ 
---
+ 
+ warning: the `link_section` attribute cannot be used on crates
+   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:81:4
+    |
+ LL | #![link_section = ",1800"]
+    |    ^^^^^^^^^^^^
+    |
+    = help: the `link_section` attribute can be applied to functions and statics
+    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ 
---
1602   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:366:11

Note: some mismatched output was normalized before being compared
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:45:4
- LL | #![macro_use] //~ WARN attribute cannot be used on
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:51:4
- LL | #![should_panic] //~ WARN attribute cannot be used on
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:55:4
- LL | #![ignore] //~ WARN attribute cannot be used on
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:63:4
- LL | #![proc_macro_derive(Test)] //~ WARN attribute cannot be used on
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:68:4
- LL | #![cold] //~ WARN attribute cannot be used on
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:72:4
- LL | #![link(name = "x")] //~ WARN attribute cannot be used on
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:76:4
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:81:4
-   --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:86:4
+ 
+ warning: the `macro_use` attribute cannot be used on crates
---
+ 
+ warning: the `link` attribute cannot be used on crates
+   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:72:4
+    |
+ LL | #![link(name = "x")]
+    |    ^^^^
+    |
+    = help: the `link` attribute can only be applied to foreign modules
+    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ 
---
+ 
+ warning: the `link_section` attribute cannot be used on crates
+   --> $DIR/issue-43106-gating-of-builtin-attrs.rs:81:4
+    |
+ LL | #![link_section = ",1800"]
+    |    ^^^^^^^^^^^^
+    |
+    = help: the `link_section` attribute can be applied to functions and statics
+    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ 
---
To only update this specific test, also pass `--test-args feature-gates/issue-43106-gating-of-builtin-attrs.rs`

error: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015"
stdout: none
--- stderr -------------------------------
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:479:17
   |
LL |     mod inner { #![macro_escape] }
   |                 ^^^^^^^^^^^^^^^^
   |
   = help: try an outer attribute: `#[macro_use]`

warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
---

warning: unknown lint: `x5400`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:41:9
   |
LL | #![warn(x5400)] //~ WARN unknown lint: `x5400`
   |         ^^^^^
   |
note: the lint level is defined here
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:35:28
   |
LL | #![warn(unused_attributes, unknown_lints)]
   |                            ^^^^^^^^^^^^^

warning: unknown lint: `x5300`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:42:10
   |
LL | #![allow(x5300)] //~ WARN unknown lint: `x5300`
   |          ^^^^^

warning: unknown lint: `x5200`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:43:11
   |
LL | #![forbid(x5200)] //~ WARN unknown lint: `x5200`
   |           ^^^^^

warning: unknown lint: `x5100`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:44:9
   |
LL | #![deny(x5100)] //~ WARN unknown lint: `x5100`
   |         ^^^^^

warning: unknown lint: `x5400`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:112:8
   |
LL | #[warn(x5400)]
   |        ^^^^^

warning: unknown lint: `x5400`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:115:25
   |
LL |     mod inner { #![warn(x5400)] }
   |                         ^^^^^

warning: unknown lint: `x5400`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:118:12
   |
LL |     #[warn(x5400)] fn f() { }
   |            ^^^^^

warning: unknown lint: `x5400`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:121:12
   |
LL |     #[warn(x5400)] struct S;
   |            ^^^^^

warning: unknown lint: `x5400`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:124:12
   |
LL |     #[warn(x5400)] type T = S;
   |            ^^^^^

warning: unknown lint: `x5400`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:127:12
   |
LL |     #[warn(x5400)] impl S { }
   |            ^^^^^

warning: unknown lint: `x5300`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:131:9
   |
LL | #[allow(x5300)]
   |         ^^^^^

warning: unknown lint: `x5300`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:134:26
   |
LL |     mod inner { #![allow(x5300)] }
   |                          ^^^^^

warning: unknown lint: `x5300`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:137:13
   |
LL |     #[allow(x5300)] fn f() { }
   |             ^^^^^

warning: unknown lint: `x5300`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:140:13
   |
LL |     #[allow(x5300)] struct S;
   |             ^^^^^

warning: unknown lint: `x5300`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:143:13
   |
LL |     #[allow(x5300)] type T = S;
   |             ^^^^^

warning: unknown lint: `x5300`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:146:13
   |
LL |     #[allow(x5300)] impl S { }
   |             ^^^^^

warning: unknown lint: `x5200`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:150:10
   |
LL | #[forbid(x5200)]
   |          ^^^^^

warning: unknown lint: `x5200`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:153:27
   |
LL |     mod inner { #![forbid(x5200)] }
   |                           ^^^^^

warning: unknown lint: `x5200`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:156:14
   |
LL |     #[forbid(x5200)] fn f() { }
   |              ^^^^^

warning: unknown lint: `x5200`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:159:14
   |
LL |     #[forbid(x5200)] struct S;
   |              ^^^^^

warning: unknown lint: `x5200`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:162:14
   |
LL |     #[forbid(x5200)] type T = S;
   |              ^^^^^

warning: unknown lint: `x5200`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:165:14
   |
LL |     #[forbid(x5200)] impl S { }
   |              ^^^^^

warning: unknown lint: `x5100`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:169:8
   |
LL | #[deny(x5100)]
   |        ^^^^^

warning: unknown lint: `x5100`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:172:25
   |
LL |     mod inner { #![deny(x5100)] }
   |                         ^^^^^

warning: unknown lint: `x5100`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:175:12
   |
LL |     #[deny(x5100)] fn f() { }
   |            ^^^^^

warning: unknown lint: `x5100`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:178:12
   |
LL |     #[deny(x5100)] struct S;
   |            ^^^^^

warning: unknown lint: `x5100`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:181:12
   |
LL |     #[deny(x5100)] type T = S;
   |            ^^^^^

warning: unknown lint: `x5100`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:184:12
   |
LL |     #[deny(x5100)] impl S { }
   |            ^^^^^

warning: the feature `rust1` has been stable since 1.0.0 and no longer requires an attribute to enable
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:101:12
   |
---

warning: the `macro_use` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:210:7
   |
LL |     #[macro_use] impl S { }
   |       ^^^^^^^^^
   |
   = help: the `macro_use` attribute can be applied to extern crates and modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `macro_export` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:223:20
   |
LL |     mod inner { #![macro_export] }
   |                    ^^^^^^^^^^^^
   |
   = help: the `macro_export` attribute can only be applied to macro defs
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `macro_export` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:247:7
   |
LL |     #[macro_export] impl S { }
   |       ^^^^^^^^^^^^
   |
   = help: the `macro_export` attribute can only be applied to macro defs
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `path` attribute cannot be used on structs
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:269:7
   |
LL |     #[path = "3800"]  struct S;
   |       ^^^^
   |
   = help: the `path` attribute can only be applied to modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `path` attribute cannot be used on type aliases
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:275:7
   |
LL |     #[path = "3800"] type T = S;
   |       ^^^^
   |
   = help: the `path` attribute can only be applied to modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `path` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:281:7
   |
LL |     #[path = "3800"] impl S { }
   |       ^^^^
   |
   = help: the `path` attribute can only be applied to modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `automatically_derived` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:294:20
   |
LL |     mod inner { #![automatically_derived] }
   |                    ^^^^^^^^^^^^^^^^^^^^^
   |
   = help: the `automatically_derived` attribute can only be applied to trait impl blocks
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `automatically_derived` attribute cannot be used on traits
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:318:7
   |
LL |     #[automatically_derived] trait W { }
   |       ^^^^^^^^^^^^^^^^^^^^^
   |
   = help: the `automatically_derived` attribute can only be applied to trait impl blocks
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `automatically_derived` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:324:7
   |
LL |     #[automatically_derived] impl S { }
   |       ^^^^^^^^^^^^^^^^^^^^^
   |
   = help: the `automatically_derived` attribute can only be applied to trait impl blocks
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `no_mangle` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:339:20
   |
LL |     mod inner { #![no_mangle] }
   |                    ^^^^^^^^^
   |
   = help: the `no_mangle` attribute can be applied to functions and statics
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `no_mangle` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:359:7
   |
LL |     #[no_mangle] impl S { }
   |       ^^^^^^^^^
   |
   = help: the `no_mangle` attribute can be applied to functions and statics
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `should_panic` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:386:20
   |
LL |     mod inner { #![should_panic] }
   |                    ^^^^^^^^^^^^
   |
   = help: the `should_panic` attribute can only be applied to functions
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `should_panic` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:406:7
   |
LL |     #[should_panic] impl S { }
   |       ^^^^^^^^^^^^
   |
   = help: the `should_panic` attribute can only be applied to functions
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `ignore` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:419:20
   |
LL |     mod inner { #![ignore] }
   |                    ^^^^^^
   |
   = help: the `ignore` attribute can only be applied to functions
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `no_implicit_prelude` attribute cannot be used on type aliases
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:462:7
   |
LL |     #[no_implicit_prelude] type T = S;
   |       ^^^^^^^^^^^^^^^^^^^
   |
   = help: the `no_implicit_prelude` attribute can be applied to crates and modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `no_implicit_prelude` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:468:7
   |
LL |     #[no_implicit_prelude] impl S { }
   |       ^^^^^^^^^^^^^^^^^^^
   |
   = help: the `no_implicit_prelude` attribute can be applied to crates and modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `macro_escape` attribute cannot be used on type aliases
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:495:7
   |
LL |     #[macro_escape] type T = S;
   |       ^^^^^^^^^^^^
   |
   = help: the `macro_escape` attribute can be applied to extern crates and modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `macro_escape` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:501:7
   |
LL |     #[macro_escape] impl S { }
   |       ^^^^^^^^^^^^
   |
   = help: the `macro_escape` attribute can be applied to extern crates and modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---
   |
note: this attribute does not have an `!`, which means it is applied to this module
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:510:1
   |
LL | / mod no_std {
LL | |     //~^ NOTE this attribute does not have an `!`, which means it is applied to this module
LL | |     mod inner { #![no_std] }
...  |
LL | | }
   | |_^

warning: the `#![no_std]` attribute can only be used at the crate root
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:512:17
   |
LL |     mod inner { #![no_std] }
   |                 ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_std]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:515:5
   |
---

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_std]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:523:5
   |
LL |     #[no_std] type T = S;
   |     ^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this type alias
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:523:15
   |
LL |     #[no_std] type T = S;
   |               ^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_std]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:527:5
   |
LL |     #[no_std] impl S { }
   |     ^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this implementation block
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:527:15
   |
LL |     #[no_std] impl S { }
   |               ^^^^^^^^^^

warning: the `cold` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:549:3
   |
---

warning: the `cold` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:556:20
   |
LL |     mod inner { #![cold] }
   |                    ^^^^
   |
   = help: the `cold` attribute can only be applied to functions
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `cold` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:576:7
   |
LL |     #[cold] impl S { }
   |       ^^^^
   |
   = help: the `cold` attribute can only be applied to functions
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `link_name` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:596:20
   |
LL |     mod inner { #![link_name="1900"] }
   |                    ^^^^^^^^^
   |
   = help: the `link_name` attribute can be applied to foreign functions and foreign statics
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `link_name` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:620:7
   |
LL |     #[link_name = "1900"] impl S { }
   |       ^^^^^^^^^
   |
   = help: the `link_name` attribute can be applied to foreign functions and foreign statics
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `link_section` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:633:20
   |
LL |     mod inner { #![link_section=",1800"] }
   |                    ^^^^^^^^^^^^
   |
   = help: the `link_section` attribute can be applied to functions and statics
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `link_section` attribute cannot be used on type aliases
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:647:7
   |
LL |     #[link_section = ",1800"] type T = S;
   |       ^^^^^^^^^^^^
   |
   = help: the `link_section` attribute can be applied to functions and statics
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `link_section` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:653:7
   |
LL |     #[link_section = ",1800"] impl S { }
   |       ^^^^^^^^^^^^
   |
   = help: the `link_section` attribute can be applied to functions and statics
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `link` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:699:20
   |
LL |     mod inner { #![link(name = "x")] }
   |                    ^^^^
   |
   = help: the `link` attribute can only be applied to foreign modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `link` attribute cannot be used on functions
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:705:7
   |
LL |     #[link(name = "x")] fn f() { }
   |       ^^^^
   |
   = help: the `link` attribute can only be applied to foreign modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `link` attribute cannot be used on structs
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:711:7
   |
LL |     #[link(name = "x")] struct S;
   |       ^^^^
   |
   = help: the `link` attribute can only be applied to foreign modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `link` attribute cannot be used on type aliases
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:717:7
   |
LL |     #[link(name = "x")] type T = S;
   |       ^^^^
   |
   = help: the `link` attribute can only be applied to foreign modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `link` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:723:7
   |
LL |     #[link(name = "x")] impl S { }
   |       ^^^^
   |
   = help: the `link` attribute can only be applied to foreign modules
   = 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
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:729:5
   |
LL |     #[link(name = "x")] 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: the `must_use` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:749:3
   |
LL | #[must_use] //~ WARN attribute cannot be used on
   |   ^^^^^^^^
...
LL | mod must_use {
   |
   = help: the `must_use` attribute can be applied to data types, functions, and traits
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `must_use` attribute cannot be used on modules
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:754:20
   |
LL |     mod inner { #![must_use] } //~ WARN attribute cannot be used on
   |                    ^^^^^^^^
   |
   = help: the `must_use` attribute can be applied to data types, functions, and traits
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `must_use` attribute cannot be used on type aliases
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:763:7
   |
LL |     #[must_use] type T = S; //~ WARN attribute cannot be used on
   |       ^^^^^^^^
   |
   = help: the `must_use` attribute can be applied to data types, functions, and traits
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `must_use` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:768:7
   |
LL |     #[must_use] impl S { } //~ WARN attribute cannot be used on
   |       ^^^^^^^^
   |
   = help: the `must_use` attribute can be applied to data types, functions, and traits
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![windows_subsystem]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:774:1
   |
LL | #[windows_subsystem = "windows"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this module
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:776:1
   |
LL | / mod windows_subsystem {
LL | |     //~^ NOTE this attribute does not have an `!`, which means it is applied to this module
LL | |     mod inner { #![windows_subsystem="windows"] }
...  |
LL | | }
   | |_^

warning: the `#![windows_subsystem]` attribute can only be used at the crate root
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:778:17
   |
LL |     mod inner { #![windows_subsystem="windows"] }
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![windows_subsystem]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:781:5
   |
LL |     #[windows_subsystem = "windows"] fn f() { }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this function
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:781:38
   |
LL |     #[windows_subsystem = "windows"] fn f() { }
   |                                      ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![windows_subsystem]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:785:5
   |
LL |     #[windows_subsystem = "windows"] struct S;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this struct
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:785:38
   |
LL |     #[windows_subsystem = "windows"] struct S;
   |                                      ^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![windows_subsystem]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:789:5
   |
LL |     #[windows_subsystem = "windows"] type T = S;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this type alias
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:789:38
   |
LL |     #[windows_subsystem = "windows"] type T = S;
   |                                      ^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![windows_subsystem]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:793:5
   |
LL |     #[windows_subsystem = "windows"] impl S { }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this implementation block
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:793:38
   |
LL |     #[windows_subsystem = "windows"] impl S { }
   |                                      ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![crate_name]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:800:1
   |
LL | #[crate_name = "0900"]
   | ^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this module
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:802:1
   |
LL | / mod crate_name {
LL | | //~^ NOTE this attribute does not have an `!`, which means it is applied to this module
LL | |     mod inner { #![crate_name="0900"] }
...  |
LL | | }
   | |_^

warning: the `#![crate_name]` attribute can only be used at the crate root
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:804:17
   |
LL |     mod inner { #![crate_name="0900"] }
   |                 ^^^^^^^^^^^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![crate_name]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:807:5
   |
LL |     #[crate_name = "0900"] fn f() { }
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this function
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:807:28
   |
LL |     #[crate_name = "0900"] fn f() { }
   |                            ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![crate_name]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:811:5
   |
---

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![crate_name]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:815:5
   |
LL |     #[crate_name = "0900"] type T = S;
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this type alias
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:815:28
   |
LL |     #[crate_name = "0900"] type T = S;
   |                            ^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![crate_name]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:819:5
   |
LL |     #[crate_name = "0900"] impl S { }
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this implementation block
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:819:28
   |
LL |     #[crate_name = "0900"] impl S { }
   |                            ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![crate_type]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:824:1
   |
LL | #[crate_type = "0800"]
   | ^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this module
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:826:1
   |
LL | / mod crate_type {
LL | | //~^ NOTE this attribute does not have an `!`, which means it is applied to this module
LL | |     mod inner { #![crate_type="0800"] }
...  |
LL | | }
   | |_^

warning: the `#![crate_type]` attribute can only be used at the crate root
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:828:17
   |
LL |     mod inner { #![crate_type="0800"] }
   |                 ^^^^^^^^^^^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![crate_type]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:831:5
   |
LL |     #[crate_type = "0800"] fn f() { }
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this function
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:831:28
   |
LL |     #[crate_type = "0800"] fn f() { }
   |                            ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![crate_type]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:835:5
   |
---

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![crate_type]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:839:5
   |
LL |     #[crate_type = "0800"] type T = S;
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this type alias
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:839:28
   |
LL |     #[crate_type = "0800"] type T = S;
   |                            ^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![crate_type]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:843:5
   |
LL |     #[crate_type = "0800"] impl S { }
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this implementation block
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:843:28
   |
LL |     #[crate_type = "0800"] impl S { }
   |                            ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![feature]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:848:1
   |
LL | #[feature(x0600)]
   | ^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this module
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:850:1
   |
LL | / mod feature {
LL | | //~^ NOTE this attribute does not have an `!`, which means it is applied to this module
LL | |     mod inner { #![feature(x0600)] }
...  |
LL | | }
   | |_^

warning: the `#![feature]` attribute can only be used at the crate root
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:852:17
   |
LL |     mod inner { #![feature(x0600)] }
   |                 ^^^^^^^^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![feature]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:855:5
   |
LL |     #[feature(x0600)] fn f() { }
   |     ^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this function
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:855:23
   |
LL |     #[feature(x0600)] fn f() { }
   |                       ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![feature]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:859:5
   |
LL |     #[feature(x0600)] struct S;
   |     ^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this struct
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:859:23
   |
LL |     #[feature(x0600)] struct S;
   |                       ^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![feature]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:863:5
   |
LL |     #[feature(x0600)] type T = S;
   |     ^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this type alias
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:863:23
   |
LL |     #[feature(x0600)] type T = S;
   |                       ^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![feature]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:867:5
   |
LL |     #[feature(x0600)] impl S { }
   |     ^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this implementation block
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:867:23
   |
LL |     #[feature(x0600)] impl S { }
   |                       ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_main]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:873:1
   |
LL | #[no_main]
   | ^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this module
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:875:1
   |
LL | / mod no_main_1 {
LL | |     //~^ NOTE: this attribute does not have an `!`, which means it is applied to this module
LL | |     mod inner { #![no_main] }
...  |
LL | | }
   | |_^

warning: the `#![no_main]` attribute can only be used at the crate root
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:877:17
   |
LL |     mod inner { #![no_main] }
   |                 ^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_main]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:880:5
   |
---

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_main]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:888:5
   |
LL |     #[no_main] type T = S;
   |     ^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this type alias
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:888:16
   |
LL |     #[no_main] type T = S;
   |                ^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_main]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:892:5
   |
LL |     #[no_main] impl S { }
   |     ^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this implementation block
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:892:16
   |
LL |     #[no_main] impl S { }
   |                ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_builtins]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:897:1
   |
LL | #[no_builtins]
   | ^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this module
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:899:1
   |
LL | / mod no_builtins {
LL | |     //~^ NOTE: this attribute does not have an `!`, which means it is applied to this module
LL | |     mod inner { #![no_builtins] }
...  |
LL | | }
   | |_^

warning: the `#![no_builtins]` attribute can only be used at the crate root
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:901:17
   |
LL |     mod inner { #![no_builtins] }
   |                 ^^^^^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_builtins]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:904:5
   |
LL |     #[no_builtins] fn f() { }
   |     ^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this function
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:904:20
   |
LL |     #[no_builtins] fn f() { }
   |                    ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_builtins]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:908:5
   |
LL |     #[no_builtins] struct S;
   |     ^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this struct
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:908:20
   |
LL |     #[no_builtins] struct S;
   |                    ^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_builtins]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:912:5
   |
LL |     #[no_builtins] type T = S;
   |     ^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this type alias
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:912:20
   |
LL |     #[no_builtins] type T = S;
   |                    ^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_builtins]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:916:5
   |
LL |     #[no_builtins] impl S { }
   |     ^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this implementation block
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:916:20
   |
LL |     #[no_builtins] impl S { }
   |                    ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![recursion_limit]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:921:1
   |
LL | #[recursion_limit="0200"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this module
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:923:1
   |
LL | / mod recursion_limit {
LL | |     //~^ NOTE this attribute does not have an `!`, which means it is applied to this module
LL | |     mod inner { #![recursion_limit="0200"] }
...  |
LL | | }
   | |_^

warning: the `#![recursion_limit]` attribute can only be used at the crate root
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:925:17
   |
LL |     mod inner { #![recursion_limit="0200"] }
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![recursion_limit]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:928:5
   |
LL |     #[recursion_limit="0200"] fn f() { }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this function
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:928:31
   |
LL |     #[recursion_limit="0200"] fn f() { }
   |                               ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![recursion_limit]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:932:5
   |
LL |     #[recursion_limit="0200"] struct S;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this struct
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:932:31
   |
LL |     #[recursion_limit="0200"] struct S;
   |                               ^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![recursion_limit]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:936:5
   |
LL |     #[recursion_limit="0200"] type T = S;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this type alias
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:936:31
   |
LL |     #[recursion_limit="0200"] type T = S;
   |                               ^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![recursion_limit]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:940:5
   |
LL |     #[recursion_limit="0200"] impl S { }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this implementation block
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:940:31
   |
LL |     #[recursion_limit="0200"] impl S { }
   |                               ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![type_length_limit]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:945:1
   |
LL | #[type_length_limit="0100"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this module
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:947:1
   |
LL | / mod type_length_limit {
LL | |     //~^ NOTE this attribute does not have an `!`, which means it is applied to this module
LL | |     mod inner { #![type_length_limit="0100"] }
...  |
LL | | }
   | |_^

warning: the `#![type_length_limit]` attribute can only be used at the crate root
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:949:17
   |
LL |     mod inner { #![type_length_limit="0100"] }
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![type_length_limit]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:952:5
   |
LL |     #[type_length_limit="0100"] fn f() { }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this function
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:952:33
   |
LL |     #[type_length_limit="0100"] fn f() { }
   |                                 ^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![type_length_limit]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:956:5
   |
LL |     #[type_length_limit="0100"] struct S;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this struct
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:956:33
   |
LL |     #[type_length_limit="0100"] struct S;
   |                                 ^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![type_length_limit]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:960:5
   |
LL |     #[type_length_limit="0100"] type T = S;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this type alias
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:960:33
   |
LL |     #[type_length_limit="0100"] type T = S;
   |                                 ^^^^^^^^^^^

warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![type_length_limit]`
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:964:5
   |
LL |     #[type_length_limit="0100"] impl S { }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this attribute does not have an `!`, which means it is applied to this implementation block
  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:964:33
   |
LL |     #[type_length_limit="0100"] impl S { }
   |                                 ^^^^^^^^^^

warning: the `macro_use` attribute cannot be used on crates
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:45:4
   |
LL | #![macro_use] //~ WARN attribute cannot be used on
   |    ^^^^^^^^^
   |
   = help: the `macro_use` attribute can be applied to extern crates and modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `should_panic` attribute cannot be used on crates
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:51:4
   |
LL | #![should_panic] //~ WARN attribute cannot be used on
   |    ^^^^^^^^^^^^
   |
   = help: the `should_panic` attribute can only be applied to functions
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `ignore` attribute cannot be used on crates
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:55:4
   |
LL | #![ignore] //~ WARN attribute cannot be used on
   |    ^^^^^^
   |
   = help: the `ignore` attribute can only be applied to functions
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `proc_macro_derive` attribute cannot be used on crates
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:63:4
   |
LL | #![proc_macro_derive(Test)] //~ WARN attribute cannot be used on
   |    ^^^^^^^^^^^^^^^^^
   |
   = help: the `proc_macro_derive` attribute can only be applied to functions
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `cold` attribute cannot be used on crates
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:68:4
   |
LL | #![cold] //~ WARN attribute cannot be used on
   |    ^^^^
   |
   = help: the `cold` attribute can only be applied to functions
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `link` attribute cannot be used on crates
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:72:4
   |
LL | #![link(name = "x")] //~ WARN attribute cannot be used on
   |    ^^^^
   |
   = help: the `link` attribute can only be applied to foreign modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

warning: the `link_section` attribute cannot be used on crates
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs:81:4
   |
LL | #![link_section = ",1800"]
   |    ^^^^^^^^^^^^
   |
   = help: the `link_section` attribute can be applied to functions and statics
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---
---- [ui] tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/feature-gates/issue-43106-gating-of-macro_use/issue-43106-gating-of-macro_use.stderr`
diff of stderr:

34 LL +     #[macro_use(name1, name2, ...)] struct S;
35    |
36 
- warning: the `macro_use` attribute cannot be used on crates
-   --> $DIR/issue-43106-gating-of-macro_use.rs:6:4
-    |
- LL | #![macro_use(my_macro)]
-    |    ^^^^^^^^^
-    |
-    = help: the `macro_use` attribute can be applied to extern crates and modules
-    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
-    = note: requested on the command line with `-W unused-attributes`
---
56 warning: the `macro_use` attribute cannot be used on functions
57   --> $DIR/issue-43106-gating-of-macro_use.rs:22:7

76    |
77 LL |     #[macro_use] impl S { }
78    |       ^^^^^^^^^
+    |
+    = help: the `macro_use` attribute can be applied to extern crates and modules
+    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ 
+ warning: the `macro_use` attribute cannot be used on crates
+   --> $DIR/issue-43106-gating-of-macro_use.rs:6:4
+    |
+ LL | #![macro_use(my_macro)]
+    |    ^^^^^^^^^
79    |
80    = help: the `macro_use` attribute can be applied to extern crates and modules
81    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---
+ 
+ warning: the `macro_use` attribute cannot be used on crates
+   --> $DIR/issue-43106-gating-of-macro_use.rs:6:4
+    |
+ LL | #![macro_use(my_macro)]
+    |    ^^^^^^^^^


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args feature-gates/issue-43106-gating-of-macro_use.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/feature-gates/issue-43106-gating-of-macro_use" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015"
stdout: none
--- stderr -------------------------------
error: arguments to `macro_use` are not allowed here
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs:14:17
   |
LL |     mod inner { #![macro_use(my_macro)] }
   |                 ^^^^^^^^^^^^^^^^^^^^^^^

error: arguments to `macro_use` are not allowed here
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs:11:1
   |
LL | #[macro_use(my_macro)]
   | ^^^^^^^^^^^^^^^^^^^^^^

error: arguments to `macro_use` are not allowed here
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs:6:1
   |
LL | #![macro_use(my_macro)]
   | ^^^^^^^^^^^^^^^^^^^^^^^

error[E0539]: malformed `macro_use` attribute input
##[error]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs:17:7
   |
---
   |
LL -     #[macro_use = "2700"] struct S;
LL +     #[macro_use] struct S;
   |
LL -     #[macro_use = "2700"] struct S;
LL +     #[macro_use(name1, name2, ...)] struct S;
   |

warning: the `macro_use` attribute cannot be used on structs
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs:17:7
   |
---

warning: the `macro_use` attribute cannot be used on inherent impl blocks
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs:30:7
   |
LL |     #[macro_use] impl S { }
   |       ^^^^^^^^^
   |
   = help: the `macro_use` attribute can be applied to extern crates and modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

warning: the `macro_use` attribute cannot be used on crates
##[warning]  --> /checkout/tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs:6:4
   |
LL | #![macro_use(my_macro)]
   |    ^^^^^^^^^
   |
   = help: the `macro_use` attribute can be applied to extern crates and modules
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

---

-   --> $DIR/empty-lint-attributes.rs:9:1
+   --> $DIR/empty-lint-attributes.rs:18:1
45    |
- LL | #![warn(reason = "observationalism")]
-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
+ LL | #[deny(reason = "ultion")]
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
48    |
-    = note: attribute `warn` without any lints has no effect
+    = note: attribute `deny` without any lints has no effect
50    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
---

-   --> $DIR/empty-lint-attributes.rs:18:1
+   --> $DIR/empty-lint-attributes.rs:9:1
63    |
- LL | #[deny(reason = "ultion")]
-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
+ LL | #![warn(reason = "observationalism")]
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
66    |
-    = note: attribute `deny` without any lints has no effect
+    = note: attribute `warn` without any lints has no effect
68    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
---
+   --> $DIR/empty-lint-attributes.rs:13:1
+ LL | #[forbid()]
+    = note: attribute `forbid` with an empty list has no effect
+   --> $DIR/empty-lint-attributes.rs:18:1
+ LL | #[deny(reason = "ultion")]
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
+    = note: attribute `deny` without any lints has no effect
+   --> $DIR/empty-lint-attributes.rs:6:1
+ LL | #![allow()]
+    = note: attribute `allow` with an empty list has no effect
+   --> $DIR/empty-lint-attributes.rs:9:1
+ LL | #![warn(reason = "observationalism")]
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
+    = note: attribute `warn` without any lints has no effect


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args lint/empty-lint-attributes.rs`

error: 1 errors occurred comparing output.
status: exit status: 0
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/lint/empty-lint-attributes.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/lint/empty-lint-attributes" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015"
stdout: none
--- stderr -------------------------------
warning: unused attribute
##[warning]  --> /checkout/tests/ui/lint/empty-lint-attributes.rs:6:1
   |
---

warning: unused attribute
##[warning]  --> /checkout/tests/ui/lint/empty-lint-attributes.rs:9:1
   |
LL | #![warn(reason = "observationalism")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
   = note: attribute `warn` without any lints has no effect

warning: unused attribute
---

warning: unused attribute
##[warning]  --> /checkout/tests/ui/lint/empty-lint-attributes.rs:18:1
   |
LL | #[deny(reason = "ultion")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
   = note: attribute `deny` without any lints has no effect

warning: unused attribute
---

warning: unused attribute
##[warning]  --> /checkout/tests/ui/lint/empty-lint-attributes.rs:18:1
   |
LL | #[deny(reason = "ultion")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
   = note: attribute `deny` without any lints has no effect
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

---

warning: unused attribute
##[warning]  --> /checkout/tests/ui/lint/empty-lint-attributes.rs:9:1
   |
LL | #![warn(reason = "observationalism")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
   = note: attribute `warn` without any lints has no effect
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

---
116 

Note: some mismatched output was normalized before being compared
-   --> /checkout/tests/ui/lint/unused/empty-attributes.rs:19:1
- LL | #[repr()] //~ ERROR unused attribute
-   --> /checkout/tests/ui/lint/unused/empty-attributes.rs:22:1
- LL | #[target_feature()] //~ ERROR unused attribute
+   --> $DIR/empty-attributes.rs:19:1
+    |
+ LL | #[repr()]
+    | ^^^^^^^^^ help: remove this attribute
+    |
---
To only update this specific test, also pass `--test-args lint/unused/empty-attributes.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/lint/unused/empty-attributes.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/lint/unused/empty-attributes" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015"
stdout: none
--- stderr -------------------------------
error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/empty-attributes.rs:2:1
   |
---

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/empty-attributes.rs:19:1
   |
LL | #[repr()] //~ ERROR unused attribute
   | ^^^^^^^^^ help: remove this attribute
   |
   = note: using `repr` with an empty list has no effect

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/empty-attributes.rs:22:1
   |
LL | #[target_feature()] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
   = note: using `target_feature` with an empty list has no effect

error: unused attribute
---

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/empty-attributes.rs:17:1
   |
LL | #![feature()] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^ help: remove this attribute
   |
   = note: using `feature` with an empty list has no effect

error: aborting due to 13 previous errors
---
120   --> $DIR/unused-attr-duplicate.rs:39:1
121    |
122 LL | #[no_link]

323 LL | #[link_section = "__TEXT,__text"]
324    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
325    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ 
+ error: unused attribute
+   --> $DIR/unused-attr-duplicate.rs:14:1
---
Note: some mismatched output was normalized before being compared
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:14:1
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:13:1
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:21:1
- LL | #![recursion_limit = "256"] //~ ERROR unused attribute
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:20:1
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:24:1
- LL | #![type_length_limit = "1"] //~ ERROR unused attribute
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:23:1
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:27:1
- LL | #![no_std] //~ ERROR unused attribute
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:26:1
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:29:1
- LL | #![no_implicit_prelude] //~ ERROR unused attribute
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:28:1
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:31:1
- LL | #![windows_subsystem = "windows"] //~ ERROR unused attribute
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:30:1
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:34:1
- LL | #![no_builtins] //~ ERROR unused attribute
-   --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:33:1
+ 
+ error: unused attribute
+   --> $DIR/unused-attr-duplicate.rs:14:1
+    |
---
To only update this specific test, also pass `--test-args lint/unused/unused-attr-duplicate.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/lint/unused/unused-attr-duplicate.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/lint/unused/unused-attr-duplicate" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/lint/unused/unused-attr-duplicate/auxiliary" "--edition=2015" "--test" "-W" "repeated-reprs"
stdout: none
--- stderr -------------------------------
error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:14:1
   |
---

warning: `#[repr(..)]` attribute is specified more than once
##[warning]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:69:8
   |
LL | #[repr(C)] //~ WARN `#[repr(..)]` attribute is specified more than once [repeated_reprs]
   |        ^
LL | #[repr(C)]
   |        ^
   |
   = note: for consistency, only specify the representation once
   = note: requested on the command line with `-W repeated-reprs`

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:39:1
   |
LL | #[no_link] //~ ERROR unused attribute
   | ^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:36:1
   |
---
   | ^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:43:1
   |
LL | #[macro_use] //~ ERROR unused attribute
   | ^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:42:1
   |
LL | #[macro_use]
   | ^^^^^^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:46:5
   |
LL |     #[macro_export] //~ ERROR unused attribute
   |     ^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:45:5
   |
LL |     #[macro_export]
   |     ^^^^^^^^^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:53:1
   |
LL | #[path = "bar.rs"] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:52:1
   |
LL | #[path = "auxiliary/lint_unused_extern_crate.rs"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:59:1
   |
LL | #[ignore = "some text"] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:58:1
   |
LL | #[ignore]
   | ^^^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:61:1
   |
LL | #[should_panic(expected = "values don't match")] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:60:1
   |
---

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:72:1
   |
LL | #[non_exhaustive] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:71:1
   |
LL | #[non_exhaustive]
   | ^^^^^^^^^^^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:78:1
   |
LL | #[automatically_derived] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:77:1
   |
LL | #[automatically_derived]
   | ^^^^^^^^^^^^^^^^^^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:82:1
   |
LL | #[inline(never)] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:81:1
   |
LL | #[inline(always)]
   | ^^^^^^^^^^^^^^^^^
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:85:1
   |
LL | #[cold] //~ ERROR unused attribute
   | ^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:84:1
   |
LL | #[cold]
   | ^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:87:1
   |
LL | #[track_caller] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:86:1
   |
LL | #[track_caller]
   | ^^^^^^^^^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:101:1
   |
LL | #[export_name = "exported_symbol_name2"] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:100:1
   |
LL | #[export_name = "exported_symbol_name"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:106:1
   |
LL | #[no_mangle] //~ ERROR unused attribute
   | ^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:105:1
   |
LL | #[no_mangle]
   | ^^^^^^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:110:1
   |
LL | #[used] //~ ERROR unused attribute
   | ^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:109:1
   |
LL | #[used]
   | ^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:114:1
   |
LL | #[link_section = "__DATA,__mod_init_func"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:113:1
   |
LL | #[link_section = "__TEXT,__text"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:14:1
---

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:21:1
   |
LL | #![recursion_limit = "256"] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:20:1
   |
LL | #![recursion_limit = "128"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:24:1
   |
LL | #![type_length_limit = "1"] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:23:1
   |
LL | #![type_length_limit = "1048576"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:27:1
   |
LL | #![no_std] //~ ERROR unused attribute
   | ^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:26:1
   |
LL | #![no_std]
   | ^^^^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:29:1
   |
LL | #![no_implicit_prelude] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:28:1
   |
LL | #![no_implicit_prelude]
   | ^^^^^^^^^^^^^^^^^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:31:1
   |
LL | #![windows_subsystem = "windows"] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:30:1
   |
LL | #![windows_subsystem = "console"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:34:1
   |
LL | #![no_builtins] //~ ERROR unused attribute
   | ^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:33:1
   |
LL | #![no_builtins]
   | ^^^^^^^^^^^^^^^

error: unused attribute
##[error]  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:95:5
   |
LL |     #[link_name = "rust_dbg_extern_identity_u32"] //~ ERROR unused attribute
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> /checkout/tests/ui/lint/unused/unused-attr-duplicate.rs:94:5
   |
---
   | ^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #164032 <https://github.com/rust-lang/rust/issues/164032>
   = note: `#[deny(no_link_attributes)]` (part of `#[deny(future_incompatible)]`) on by default
------------------------------------------

---- [ui] tests/ui/lint/unused/unused-attr-duplicate.rs stdout end ----

failures:

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants