-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #12798 - epage:msrv-install, r=ehuss
fix(install): Suggest an alternative version on MSRV failure ### What does this PR try to resolve? Moves users from a bad error message, suggesting `--locked` which won't do anything, to suggesting a version of a package to use instead. The side benefit is errors get reported sooner - Before downloading the `.crate` - When installing multiple packages, before building the first This comes at the cost of an extra `rustc` invocation. ### How should we test and review this PR? Per-commit this builds it up, from tests to the final design. ### Additional information This is also written in a way to align fairly well with how we'd likely implement #10903. This improved error message will still be useful after that issue is resolved when the MSRV compatible version is outside of the version req.
- Loading branch information
Showing
4 changed files
with
113 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters