Skip to content

Commit a7bd71e

Browse files
committed
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`
1 parent fbebea2 commit a7bd71e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/testsuite/fix.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ 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_line_without(
33+
&["[ERROR] could not compile `foo` (lib) due to 1 previous error"],
34+
&[],
35+
)
3336
.run();
3437
assert!(p.read_file("src/lib.rs").contains("let mut x = 3;"));
3538
}

0 commit comments

Comments
 (0)