Commit 5dfe9bf
committed
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 experience1 file changed
+40
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
93 | 118 | | |
94 | 119 | | |
95 | 120 | | |
| |||
232 | 257 | | |
233 | 258 | | |
234 | 259 | | |
235 | | - | |
236 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
237 | 265 | | |
238 | 266 | | |
239 | 267 | | |
| |||
242 | 270 | | |
243 | 271 | | |
244 | 272 | | |
245 | | - | |
| 273 | + | |
| 274 | + | |
246 | 275 | | |
247 | 276 | | |
248 | 277 | | |
249 | 278 | | |
250 | 279 | | |
251 | 280 | | |
252 | | - | |
| 281 | + | |
| 282 | + | |
253 | 283 | | |
254 | 284 | | |
255 | 285 | | |
0 commit comments