unused_attributes: false positive since nightly-2025-03-21 "unused attribute <cfg_attr>
"
#138779
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
L-unused_attributes
Lint: unused_attributes
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I tried this code:
I expected to see this happen: no warning
Instead, this happened: unused_attributes warns cfg_attr
Version it worked on
It most recently worked on: nightly-2025-03-20
Version with regression
nightly-2025-03-21
rustc --version --verbose
:@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged +A-attributes
The text was updated successfully, but these errors were encountered: