Skip to content

Commit

Permalink
[RFC 3127 - Trim Paths]: Add test for -Zremap-path-scope=diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Sep 8, 2023
1 parent 376234f commit 2799ae1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0425]: cannot find value `ferris` in this scope
--> remapped/errors/remap-path-prefix.rs:16:5
--> remapped/errors/remap-path-prefix.rs:19:5
|
LL | ferris
| ^^^^^^ not found in this scope
Expand Down
3 changes: 3 additions & 0 deletions tests/ui/errors/remap-path-prefix.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// revisions: normal with-diagnostic-scope without-diagnostic-scope
// compile-flags: --remap-path-prefix={{src-base}}=remapped
// [with-diagnostic-scope]compile-flags: -Zremap-path-scope=diagnostics
// [without-diagnostic-scope]compile-flags: -Zremap-path-scope=object
// no-remap-src-base: Manually remap, so the remapped path remains in .stderr file.

// The remapped paths are not normalized by compiletest.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0425]: cannot find value `ferris` in this scope
--> remapped/errors/remap-path-prefix.rs:19:5
|
LL | ferris
| ^^^^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0425]: cannot find value `ferris` in this scope
--> $DIR/remap-path-prefix.rs:19:5
|
LL | ferris
| ^^^^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.

0 comments on commit 2799ae1

Please sign in to comment.