]> git.proxmox.com Git - cargo.git/commitdiff
Auto merge of #6525 - ehuss:publish-crates-io-alt, r=nrc
authorbors <bors@rust-lang.org>
Sun, 6 Jan 2019 21:40:12 +0000 (21:40 +0000)
committerbors <bors@rust-lang.org>
Sun, 6 Jan 2019 21:40:12 +0000 (21:40 +0000)
publish: rework the crates.io detection logic.

The old code used an unreliable method to detect if `cargo publish` was publishing to crates.io. This should work even if the `--index` flag is used.

Also includes a very minor rewording of an error message mentioning crates.io, even for alternative registries.


Trivial merge