mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00

### What does this PR try to resolve? Fixes https://github.com/rust-lang/cargo/issues/12978 currently, if `--package `and `--workspace` passe in the same time, the `--package` will be ignore even the package doesnt exist in the workspace, this PR regards this behavior as an error ### How should we test and review this PR? one commit add test, one commit fixes the issue. ### Additional information