Skip to content

Commit c296c89

Browse files
Fix remap-path-prefix UI test case.
1 parent 8436fe1 commit c296c89

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/test/ui/remap-path-prefix.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// compile-flags: --remap-path-prefix={{src-base}}=remapped
22

33
fn main() {
4-
ferris //~ ERROR cannot find value `ferris` in this scope
4+
// We cannot actually put an ERROR marker here because
5+
// the file name in the error message is not what the
6+
// test framework expects (since the filename gets remapped).
7+
// We still test the expected error in the stderr file.
8+
ferris
59
}

src/test/ui/remap-path-prefix.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0425]: cannot find value `ferris` in this scope
2-
--> remapped/remap-path-prefix.rs:4:5
2+
--> remapped/remap-path-prefix.rs:8:5
33
|
44
LL | ferris
55
| ^^^^^^ not found in this scope

0 commit comments

Comments
 (0)