Skip to content

Commit

Permalink
Auto merge of #13415 - oli-obk:relax_test_for_rustc_changes, r=weihanglo
Browse files Browse the repository at this point in the history
Relax a test to permit warnings to be emitted, too.

This change is necessary to allow rustc to actually start emitting the warning about the unused `mut`

See the test failure in rust-lang/rust#120550 (comment) for where this happens.
  • Loading branch information
bors committed Feb 7, 2024
2 parents 9a6bafd + e60678f commit ccc84cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testsuite/fix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn do_not_fix_broken_builds() {
p.cargo("fix --allow-no-vcs")
.env("__CARGO_FIX_YOLO", "1")
.with_status(101)
.with_stderr_contains("[ERROR] could not compile `foo` (lib) due to 1 previous error")
.with_stderr_contains("[ERROR] could not compile `foo` (lib) due to 1 previous error[..]")
.run();
assert!(p.read_file("src/lib.rs").contains("let mut x = 3;"));
}
Expand Down

0 comments on commit ccc84cc

Please sign in to comment.