Skip to content

Regression in nightly-2025-06-28: rustdoc --test -Zcrate-attr=feature(used_with_arg) #147276

@dtolnay

Description

@dtolnay
#[used(linker)]
static REPRO: isize = 1;
$ rustdoc +nightly-2025-06-27 --test -Zcrate-attr='feature(used_with_arg)' lib.rs

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
$ rustdoc +nightly-2025-06-28 --test -Zcrate-attr='feature(used_with_arg)' lib.rs
error[E0658]: `#[used(linker)]` is currently unstable
 --> lib.rs:1:1
  |
1 | #[used(linker)]
  | ^^^^^^^^^^^^^^^
  |
  = note: see issue #93798 <https://github.com/rust-lang/rust/issues/93798> for more information
  = help: add `#![feature(used_with_arg)]` to the crate attributes to enable
  = note: this compiler was built on 2025-06-27; consider upgrading it if it is out of date

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0658`.

The most recent nightly (nightly-2025-10-02) remains affected.

Bisects to #142818. @JonathanBrouwer @jdonszelmann

Metadata

Metadata

Assignees

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)A-doctestsArea: Documentation tests, run by rustdocC-bugCategory: This is a bug.F-used_with_arg`#![feature(used_with_arg)]`S-has-bisectionStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-untriagedUntriaged performance or correctness regression.requires-nightlyThis issue requires a nightly compiler in some way.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions