diff --git a/tests/testsuite/check.rs b/tests/testsuite/check.rs index 6d931f34090..147098bc9c7 100644 --- a/tests/testsuite/check.rs +++ b/tests/testsuite/check.rs @@ -367,7 +367,7 @@ 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 module `bar`") + .with_stderr_contains("[..]cannot find function `qux` in [..] `bar`") .run(); } diff --git a/tests/testsuite/metabuild.rs b/tests/testsuite/metabuild.rs index d060d407aed..c1bc4fda11c 100644 --- a/tests/testsuite/metabuild.rs +++ b/tests/testsuite/metabuild.rs @@ -733,7 +733,7 @@ fn metabuild_failed_build_json() { "children": "{...}", "code": "{...}", "level": "error", - "message": "cannot find function `metabuild` in module `mb`", + "message": "cannot find function `metabuild` in [..] `mb`", "rendered": "[..]", "spans": "{...}" },