From c39b8398c520d47a1e3346560875e513a45d0089 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 7 Feb 2024 13:52:38 +0000 Subject: [PATCH] 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` --- tests/testsuite/fix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testsuite/fix.rs b/tests/testsuite/fix.rs index 7b1a5d12fc9d..05493960cad4 100644 --- a/tests/testsuite/fix.rs +++ b/tests/testsuite/fix.rs @@ -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;")); }