Skip to content

Commit

Permalink
Unrolled build for rust-lang#137117
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#137117 - ChrisDenton:error-lang, r=fmease,Noratrieb

Fix test that relies on error language

We shouldn't care about the OS error message text in this test.
  • Loading branch information
rust-timer authored Feb 17, 2025
2 parents 5bc6231 + 8ae3ca9 commit 5efecf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/ui/unpretty/staged-api-invalid-path-108697.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`
2 changes: 1 addition & 1 deletion tests/ui/unpretty/staged-api-invalid-path-108697.stderr
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 5efecf1

Please sign in to comment.