Skip to content

Commit

Permalink
Auto merge of #9891 - ehuss:beta-remove-z-force-warn, r=alexcrichton
Browse files Browse the repository at this point in the history
[beta] Fix `cargo fix --edition` on stable.

Beta backport of #9890.
  • Loading branch information
bors committed Sep 9, 2021
2 parents 18751dd + 82f48c6 commit d199d81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cargo/ops/fix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -857,8 +857,7 @@ impl FixArgs {
if edition.supports_compat_lint() {
if env::var_os(SUPPORTS_FORCE_WARN).is_some() {
cmd.arg("--force-warn")
.arg(format!("rust-{}-compatibility", edition))
.arg("-Zunstable-options");
.arg(format!("rust-{}-compatibility", edition));
} else {
cmd.arg("-W").arg(format!("rust-{}-compatibility", edition));
}
Expand Down

0 comments on commit d199d81

Please sign in to comment.