1
Fork 0

Fix test that relies on error language

This commit is contained in:
Chris Denton 2025-02-16 09:08:24 +00:00
parent c3fe9e7e4d
commit 8ae3ca98e5
No known key found for this signature in database
GPG key ID: 713472F2F45627DE
2 changed files with 3 additions and 3 deletions

View file

@ -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`

View file

@ -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;