Skip to content

Commit ccc84cc

Browse files
committed
Auto merge of #13415 - oli-obk:relax_test_for_rustc_changes, r=weihanglo
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.
2 parents 9a6bafd + e60678f commit ccc84cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testsuite/fix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn do_not_fix_broken_builds() {
2929
p.cargo("fix --allow-no-vcs")
3030
.env("__CARGO_FIX_YOLO", "1")
3131
.with_status(101)
32-
.with_stderr_contains("[ERROR] could not compile `foo` (lib) due to 1 previous error")
32+
.with_stderr_contains("[ERROR] could not compile `foo` (lib) due to 1 previous error[..]")
3333
.run();
3434
assert!(p.read_file("src/lib.rs").contains("let mut x = 3;"));
3535
}

0 commit comments

Comments
 (0)