rust-lang / rust-lang/rust-clippy
Activate rustc `deprecated_in_future` lint by default in clippy
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
Description
rustc has an allow-by-default lint deprecated_in_future, which does the same thing as deprecated, except that the lint is allow-by-default instead of warn or higher.
By being allow-by-default makes sense for rustc, as the intention is not to warn unnecessarily when it's not 100% required; but I think that making the lint warn-by-default with clippy would make a lot of sense, as clippy is by nature more relaxed on things that it lints on, and linting on deprecated in future usage would be something that clippy users might want.
Related to https://github.com/rust-lang/rust-clippy/pull/10997 where we are trying to lint on deprecated in future items. cc @Centri3
Version
No response
Additional Labels
@rustbot label +C-enhancement
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the issue and related pull request 10997 to understand how Clippy handles rustc's deprecated_in_future lint. Confirm the intended default level and check the existing lint behavior; done means Clippy warns by default for uses covered by this lint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100