-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[patch]
in config.toml
triggers unhelpful warnings
#11782
Comments
Hmm… interesting. IIRC, I noticed you used plural workspaces. Did you mean you have a Since Cargo configurations follow a hierarchical structure for their discovery. That mean you can have multiple The other way round is abusing There is also a brand new |
I have mostly-duplicate For a |
FWIW, with #12115 we open a possibility that Cargo can have its own lint rules. This issue could benefit from that. |
@rustbot label +Z-lints-table Labelled as such to indicate it is currently blocked on |
OTOH, people may also want to deny this warning to ensure every patch is applied. See https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/Force.20error.20on.20.22Patch.20.2E.2E.2E.20was.20not.20used.20in.20the.20crate.20graph.22.3F. So we need it to be configurable. |
So far, we've only had manifest, and not config, lints in scope for being controlled by the user as lint control is only allowed in |
Problem
#9269 introduced
[patch]
in.cargo/config.toml
. If dependencies patched in this way are used in some workspaces but not others, unnecessary warnings are emitted:We use the
xtask
pattern, with workspaces for different targets.Possible Solution(s)
Silence warnings about unused patches that come from
config.toml
sVersion
The text was updated successfully, but these errors were encountered: