mirror of https://github.com/rust-lang/rust.git
[RFC 3127 - Trim Paths]: Add test for -Zremap-path-scope=diagnostics
This commit is contained in:
parent
60e24462b6
commit
297827fb86
|
@ -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
|
|
@ -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.
|
||||
|
|
|
@ -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`.
|
|
@ -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`.
|
Loading…
Reference in New Issue