Skip to content

Revert "feat(lints): Add unused deps ignore list"#16937

Merged
arlosi merged 1 commit intorust-lang:masterfrom
epage:revert
Apr 23, 2026
Merged

Revert "feat(lints): Add unused deps ignore list"#16937
arlosi merged 1 commit intorust-lang:masterfrom
epage:revert

Conversation

@epage
Copy link
Copy Markdown
Contributor

@epage epage commented Apr 23, 2026

What does this PR try to resolve?

This is a follow up to #16935 where we take a different direction for false positives.
We are now ignoring unused direct deps that are also transitive deps (technically still used somewhere). This leaves workflows like curl where the build.rs dynamically decides what deps to use but that seems like enough of an exception case to not worry about direct integration for.
This means we can punt on having an allowlist to decide what approach we want take from among rust-lang/rfcs#3920

How to test and review this PR?

This reverts commit b276acc.

This reverts commit b276acc.

This is a follow up to rust-lang#16935 where we take a different direction for
false positives.
Instead of an allowlist, we will ignore unused direct deps that are also
transitive deps (technically still used somewhere).
This leaves workflows like `curl` where the `build.rs` dynamically
decides what deps to use but that seems like enough of an exception case
to not worry about direct integration for.
@rustbot rustbot added A-documenting-cargo-itself Area: Cargo's documentation A-manifest Area: Cargo.toml issues S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 23, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 23, 2026

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ehuss, @epage, @weihanglo
  • @ehuss, @epage, @weihanglo expanded to ehuss, epage, weihanglo
  • Random selection from ehuss, weihanglo

@arlosi arlosi added this pull request to the merge queue Apr 23, 2026
Merged via the queue into rust-lang:master with commit 71390b5 Apr 23, 2026
29 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 23, 2026
@epage epage deleted the revert branch April 24, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-documenting-cargo-itself Area: Cargo's documentation A-manifest Area: Cargo.toml issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants