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 authored and stupendoussuperpowers committed Feb 28, 2024
1 parent 72297d7 commit c39b839
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 c39b839

Please sign in to comment.