mirror of https://github.com/rust-lang/cargo
refactor(resolve): Make it easier to extend MSRV logic
This commit is contained in:
parent
a8e816b079
commit
b7b3874d09
|
@ -304,7 +304,8 @@ pub fn resolve_with_previous<'gctx>(
|
||||||
version_prefs.version_ordering(VersionOrdering::MinimumVersionsFirst)
|
version_prefs.version_ordering(VersionOrdering::MinimumVersionsFirst)
|
||||||
}
|
}
|
||||||
if ws.resolve_honors_rust_version() {
|
if ws.resolve_honors_rust_version() {
|
||||||
version_prefs.max_rust_version(ws.rust_version().cloned().map(RustVersion::into_partial));
|
let rust_version = ws.rust_version().cloned().map(RustVersion::into_partial);
|
||||||
|
version_prefs.max_rust_version(rust_version);
|
||||||
}
|
}
|
||||||
|
|
||||||
let avoid_patch_ids = if register_patches {
|
let avoid_patch_ids = if register_patches {
|
||||||
|
|
Loading…
Reference in New Issue