-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Regression when using #[expect(unused)] more than once in an impl block #114416
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.F-lint_reasons`#![feature(lint_reasons)]``#![feature(lint_reasons)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.F-lint_reasons`#![feature(lint_reasons)]``#![feature(lint_reasons)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
At some point between
rustcnightly-2023-03-05(works) andnightly-2023-07-01(does not work) the following stopped compiling:RUSTFLAGS="-D warnings" cargo checkI have not bisected for the exact commit that broke this.
I have only tried to reproduce this error using
#[expect(unused)]. It's possible that this is also broken for other lints.PR: #114417