Skip to content

Commit e60678f

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 e60678f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testsuite/fix.rs

+1-1
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)