Skip to content

Commit 5efecf1

Browse files
authored
Unrolled build for rust-lang#137117
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.
2 parents 5bc6231 + 8ae3ca9 commit 5efecf1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/ui/unpretty/staged-api-invalid-path-108697.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// ICE: tcx.resolutions(()) is not supported for local crate -Zunpretty=mir
33
// on invalid module path with staged_api
44
//@ compile-flags: -Zunpretty=mir
5-
//@ normalize-stderr: "The system cannot find the file specified." -> "No such file or directory"
5+
//@ normalize-stderr: "lol`: .*\(" -> "lol`: $$FILE_NOT_FOUND_MSG ("
66
#![feature(staged_api)]
77
#[path = "lol"]
88
mod foo;
9-
//~^ ERROR couldn't read
9+
//~^ ERROR couldn't read `$DIR/lol`

tests/ui/unpretty/staged-api-invalid-path-108697.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: couldn't read `$DIR/lol`: No such file or directory (os error 2)
1+
error: couldn't read `$DIR/lol`: $FILE_NOT_FOUND_MSG (os error 2)
22
--> $DIR/staged-api-invalid-path-108697.rs:8:1
33
|
44
LL | mod foo;

0 commit comments

Comments
 (0)