mirror of
https://github.com/rust-lang/cargo
synced 2024-11-05 18:50:39 +00:00
Remove --all-targets restriction for v2 resolver migration check.
This commit is contained in:
parent
501499c5f9
commit
6c69e9d95b
1 changed files with 0 additions and 6 deletions
|
@ -224,12 +224,6 @@ fn check_resolver_change(ws: &Workspace<'_>, opts: &FixOptions) -> CargoResult<(
|
|||
return Ok(());
|
||||
}
|
||||
}
|
||||
if !opts.compile_opts.filter.is_all_targets() {
|
||||
// When migrating specific targets, we can't know if the user intends
|
||||
// to set the global edition at this time or not. Conservatively
|
||||
// assume the user will figure things out.
|
||||
return Ok(());
|
||||
}
|
||||
// 2018 without `resolver` set must be V1
|
||||
assert_eq!(ws.resolve_behavior(), ResolveBehavior::V1);
|
||||
let specs = opts.compile_opts.spec.to_package_id_specs(ws)?;
|
||||
|
|
Loading…
Reference in a new issue