Skip to content

Commit

Permalink
Fix cargo fix --edition on stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Sep 9, 2021
1 parent e515c32 commit 1ae99da
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 1ae99da

Please sign in to comment.