Skip to content

Commit 6c69e9d

Browse files
committed
Remove --all-targets restriction for v2 resolver migration check.
1 parent 501499c commit 6c69e9d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/cargo/ops/fix.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,6 @@ fn check_resolver_change(ws: &Workspace<'_>, opts: &FixOptions) -> CargoResult<(
224224
return Ok(());
225225
}
226226
}
227-
if !opts.compile_opts.filter.is_all_targets() {
228-
// When migrating specific targets, we can't know if the user intends
229-
// to set the global edition at this time or not. Conservatively
230-
// assume the user will figure things out.
231-
return Ok(());
232-
}
233227
// 2018 without `resolver` set must be V1
234228
assert_eq!(ws.resolve_behavior(), ResolveBehavior::V1);
235229
let specs = opts.compile_opts.spec.to_package_id_specs(ws)?;

0 commit comments

Comments
 (0)