diff --git a/tests/testsuite/check.rs b/tests/testsuite/check.rs index 5993e727b81f..bd119f45046e 100644 --- a/tests/testsuite/check.rs +++ b/tests/testsuite/check.rs @@ -347,7 +347,8 @@ fn rustc_check_err() { .with_status(101) .with_stderr_contains("[CHECKING] bar [..]") .with_stderr_contains("[CHECKING] foo [..]") - .with_stderr_contains("[..]cannot find function `qux` in [..] `bar`") + .with_stderr_contains("[..]cannot find function `qux`[..]") + .with_stderr_contains("[..]in crate `bar`") .run(); } diff --git a/tests/testsuite/message_format.rs b/tests/testsuite/message_format.rs index e7a85f9a44dc..ee53015a1e65 100644 --- a/tests/testsuite/message_format.rs +++ b/tests/testsuite/message_format.rs @@ -138,7 +138,7 @@ test src/lib.rs - bar (line 1) ... FAILED failures: ---- src/lib.rs - bar (line 1) stdout ---- -src/lib.rs:2:1: error[E0425]: cannot find function `bar` in this scope +src/lib.rs:2:1: error[E0425]: cannot find function `bar`[..] [ERROR] aborting due to 1 previous error Couldn't compile the test. diff --git a/tests/testsuite/metabuild.rs b/tests/testsuite/metabuild.rs index be0be9b73e25..a4a313fe8ad2 100644 --- a/tests/testsuite/metabuild.rs +++ b/tests/testsuite/metabuild.rs @@ -765,7 +765,7 @@ fn metabuild_failed_build_json() { "children": "{...}", "code": "{...}", "level": "error", - "message": "cannot find function `metabuild` in [..] `mb`", + "message": "cannot find function `metabuild`[..]", "rendered": "{...}", "spans": "{...}" }, diff --git a/tests/testsuite/replace.rs b/tests/testsuite/replace.rs index 7a388a0b71c6..d2d0aa48cbad 100644 --- a/tests/testsuite/replace.rs +++ b/tests/testsuite/replace.rs @@ -1443,7 +1443,7 @@ fn override_respects_spec_metadata() { [DOWNLOADED] bar v0.1.0+a (registry `dummy-registry`) [CHECKING] bar v0.1.0+a [CHECKING] foo v0.0.1 ([ROOT]/foo) -error[E0425]: cannot find function `bar` in crate `bar` +error[E0425]: cannot find function `bar`[..] ... [ERROR] could not compile `foo` (lib) due to 1 previous error