"Lint reasons are experimental" not flagged by clippy for rust-version without support for them #13406
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
Summary
Looked for issues with "rust-version reason" could not find anything.
Asked on zulip here https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/Lint.20reasons.20are.20experimental.20not.20detected.20with.20rust-version
reproduced here
was advised to open an issue if I did not find one in the clippy issues. The person advising to open an issue cites "language properties" (like this case) and "trait implementations" as being things clippy does not track very well
Cheers
Reproducer
I tried this code:
I expected to see this happen:
Get a warning from clippy given the min rust-version of the project is 1.76 and does not support "allow with reason" (stabilized in 1.81)
Instead, this happened:
No warnings
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: