rust-lang / rust-lang/rust-clippy

Activate rustc `deprecated_in_future` lint by default in clippy

Open
#11,323 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.