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
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Apr 25, 2026
Update cargo submodule

10 commits in 06ac0e7c05770a8c7bbf67bdd12fa1a1eefdc8ae..eb9b60f1f6604b5e022c56be31692c215b8ba11d
2026-04-21 15:33:56 +0000 to 2026-04-24 20:52:07 +0000
- chore: Remove unused deps (rust-lang/cargo#16938)
- feat(compile): Stabilize `build.warnings` (rust-lang/cargo#16796)
- cargo clean: do not error if explicitly specified target-dir does not exist (rust-lang/cargo#16934)
- Revert "feat(lints): Add unused deps ignore list" (rust-lang/cargo#16937)
- fix(compile): Ignore unused deps if also transitive  (rust-lang/cargo#16935)
- Update rustls (rust-lang/cargo#16932)
- chore(deps): update rust crate openssl to v0.10.78 [security] (rust-lang/cargo#16931)
- chore(build-rs): Ensure we lint the crate (rust-lang/cargo#16930)
- Fix flaky test: proc_macro_in_artifact_dep (rust-lang/cargo#16922)
- refactor(compile): Log all ignored unused externs (rust-lang/cargo#16920)

r? ghost
@rustbot rustbot added this to the 1.97.0 milestone Apr 25, 2026
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