[RFC 3127 - Trim Paths]: Add test for -Zremap-path-scope=diagnostics

This commit is contained in:
Urgau 2023-08-25 16:36:40 +02:00
parent 60e24462b6
commit 297827fb86
4 changed files with 22 additions and 1 deletions

View File

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

View File

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

View File

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

View File

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