Skip to content

Commit

Permalink
Relax a test to permit warnings to be emitted, too.
Browse files Browse the repository at this point in the history
This change is necessary to allow rustc to actually start emitting the warning about the unused `mut`
  • Loading branch information
oli-obk committed Feb 7, 2024
1 parent fbebea2 commit a7bd71e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/testsuite/fix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ 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_line_without(
&["[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 a7bd71e

Please sign in to comment.