File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -605,6 +605,10 @@ impl<'gctx> Workspace<'gctx> {
605605 self . members ( ) . filter_map ( |pkg| pkg. rust_version ( ) ) . min ( )
606606 }
607607
608+ pub fn resolve_honors_rust_version ( & self ) -> bool {
609+ self . gctx ( ) . cli_unstable ( ) . msrv_policy
610+ }
611+
608612 pub fn custom_metadata ( & self ) -> Option < & toml:: Value > {
609613 self . custom_metadata . as_ref ( )
610614 }
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ pub fn resolve_with_previous<'gctx>(
323323 if ws. gctx ( ) . cli_unstable ( ) . minimal_versions {
324324 version_prefs. version_ordering ( VersionOrdering :: MinimumVersionsFirst )
325325 }
326- if ws. gctx ( ) . cli_unstable ( ) . msrv_policy {
326+ if ws. resolve_honors_rust_version ( ) {
327327 version_prefs. max_rust_version ( ws. rust_version ( ) . cloned ( ) . map ( RustVersion :: into_partial) ) ;
328328 }
329329
You can’t perform that action at this time.
0 commit comments