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

This commit is contained in:
Urgau 2023-08-25 16:23:23 +02:00
parent ab92dc3786
commit 60e24462b6
4 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
remapped/errors/remap-path-prefix-macro.rs

View File

@ -0,0 +1,12 @@
// run-pass
// check-run-results
// revisions: normal with-macro-scope without-macro-scope
// compile-flags: --remap-path-prefix={{src-base}}=remapped
// [with-macro-scope]compile-flags: -Zremap-path-scope=macro,diagnostics
// [without-macro-scope]compile-flags: -Zremap-path-scope=diagnostics
// no-remap-src-base: Manually remap, so the remapped path remains in .stderr file.
fn main() {
println!("{}", file!());
}

View File

@ -0,0 +1 @@
remapped/errors/remap-path-prefix-macro.rs

View File

@ -0,0 +1 @@
$DIR/remap-path-prefix-macro.rs