Warn when [patch] section is being ignored because of workspaces #6248
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Describe the problem you are trying to solve
When you add a
[patch]
section to a crate'sCargo.toml
, this section is ignored if the crate is part of a workspace. The[patch]
section should be added in the workspace'sCargo.toml
instead.Describe the solution you'd like
cargo
should warn about this situation.The text was updated successfully, but these errors were encountered: