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 #13066 - epage:msrv, r=Eh2406
fix(resolver): De-prioritize no-rust-version in MSRV resolver ### What does this PR try to resolve? This is a corner case without a good answer. As such, this change leans on some happy-path entries existing and preferring those. ### How should we test and review this PR? ### Additional information This was originally discussed around the time of #12950 but was held off. When working on this, I was considering other heuristics like - If a future version has an MSRV, assume that it applies also to the current version - This can be added in the future - We likely would want to consider an alternative value, like inferring the rust-version from the manifest or the rust-version used from publish - Sort no-MSRV versions of a package by minimal versions - The lower the version, the more likely it is to be compatible - This likely could apply to incompatible MSRVs (or we could reverse-sort those by rust-version) but those will error anyways without `--ignore-rust-version`, so I decided against these - I realized this was a backdoor to minimal versions for dependencies without a MSRV and that the community support isn't there for that yet to be a high enough quality of an experience
- Loading branch information