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 e60678f
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 e60678f

Please sign in to comment.