Unused patch with same dependency as a used patch isn't marked unused #12471
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
A-patch
Area: [patch] table override
C-bug
Category: bug
S-needs-mentor
Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
Problem
A known unused patch isn't marked unused and doesn't emit a warning when there is another used patch using the same dependency.
e.g.
if the crates-io patch is used and the foo patch is unused, foo will not be marked as unused.
Steps
Execute
cargo update
Expectation
A warning of the
foo/bar
patch being unused is emitted and a section in the Cargo.lock file for it.Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: