Auto merge of #5462 - matklad:install-releases, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 2 May 2018 23:52:15 +0000 (23:52 +0000)
committerbors <bors@rust-lang.org>
Wed, 2 May 2018 23:52:15 +0000 (23:52 +0000)
Don't install pre-releases by default

Currently, `cargo install` will try to install a pre-release version, if available (try `cargo install rand`). This happens because we use `VersionReq::any`, if no version is specified, and that matches pre-releases. The fix is to use `*`, which is different from `any`.

This needs to be done in `cargo install`, and not directly in `parse_no_deprecated`, the latter would be wrong, as demonstrated by a new test with patch.


Trivial merge