mirror of
https://github.com/rust-lang/cargo.git
synced 2026-03-06 19:19:02 +00:00
Partially adresses #16231. ### What does this PR try to resolve? `cargo publish` will fail, if `--registry` is passed and that index isn't included in `package.publish` in Cargo.toml. However, as described in linked issue, `--index` bypasses that check and may cause unexpected publication of packages. This PR implements warning that is shown when `--index` and `package.publish` is set at the same time.