diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-02-16 09:08:24 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2025-02-16 09:08:24 +0000 |
| commit | 8ae3ca98e5c225da22e7ab1a86069098a74cdfe2 (patch) | |
| tree | b5ce46bf775f1ea11ff88a45c539b121735ed90f | |
| parent | c3fe9e7e4d259759589f3431aaadf7ab35b9269f (diff) | |
| download | rust-8ae3ca98e5c225da22e7ab1a86069098a74cdfe2.tar.gz rust-8ae3ca98e5c225da22e7ab1a86069098a74cdfe2.zip | |
Fix test that relies on error language
| -rw-r--r-- | tests/ui/unpretty/staged-api-invalid-path-108697.rs | 4 | ||||
| -rw-r--r-- | tests/ui/unpretty/staged-api-invalid-path-108697.stderr | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/unpretty/staged-api-invalid-path-108697.rs b/tests/ui/unpretty/staged-api-invalid-path-108697.rs index 71bad213576..8a806b10d9d 100644 --- a/tests/ui/unpretty/staged-api-invalid-path-108697.rs +++ b/tests/ui/unpretty/staged-api-invalid-path-108697.rs @@ -2,8 +2,8 @@ // ICE: tcx.resolutions(()) is not supported for local crate -Zunpretty=mir // on invalid module path with staged_api //@ compile-flags: -Zunpretty=mir -//@ normalize-stderr: "The system cannot find the file specified." -> "No such file or directory" +//@ normalize-stderr: "lol`: .*\(" -> "lol`: $$FILE_NOT_FOUND_MSG (" #![feature(staged_api)] #[path = "lol"] mod foo; -//~^ ERROR couldn't read +//~^ ERROR couldn't read `$DIR/lol` diff --git a/tests/ui/unpretty/staged-api-invalid-path-108697.stderr b/tests/ui/unpretty/staged-api-invalid-path-108697.stderr index e68e19c4dc9..188f4985ded 100644 --- a/tests/ui/unpretty/staged-api-invalid-path-108697.stderr +++ b/tests/ui/unpretty/staged-api-invalid-path-108697.stderr @@ -1,4 +1,4 @@ -error: couldn't read `$DIR/lol`: No such file or directory (os error 2) +error: couldn't read `$DIR/lol`: $FILE_NOT_FOUND_MSG (os error 2) --> $DIR/staged-api-invalid-path-108697.rs:8:1 | LL | mod foo; |
