Skip to content

Commit cebef29

Browse files
committed
Auto merge of #9714 - PTNobel:fix-force-warn, r=ehuss
Changes rustc argument from `--force-warns` to `--force-warn` The rustc argument was renamed in rust-lang/rust#87346 breaking `cargo fix` on the nightly toolchain. I encountered this while attempting to test Edition 2021 migrations. I ran `RUSTC=/path/to/nightly/rustc cargo test` and encountered a few failing tests, but none of them seemed at all related to the 1 line I changed, so if they crop up in CI as well, would love some help on identifying what's causing that. Closes rust-lang/rust#87360
2 parents 706c291 + 3dc2018 commit cebef29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/fix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ impl FixArgs {
793793
if let Some(edition) = self.prepare_for_edition {
794794
if edition.supports_compat_lint() {
795795
if config.nightly_features_allowed {
796-
cmd.arg("--force-warns")
796+
cmd.arg("--force-warn")
797797
.arg(format!("rust-{}-compatibility", edition))
798798
.arg("-Zunstable-options");
799799
} else {

0 commit comments

Comments
 (0)