Skip to content

Commit

Permalink
Remove --all-targets restriction for v2 resolver migration check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Mar 16, 2021
1 parent 501499c commit 6c69e9d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/cargo/ops/fix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 6c69e9d

Please sign in to comment.