Skip to content

Commit ba035ed

Browse files
committed
[RFC 3127 - Trim Paths]: Add test for -Zremap-path-scope=macro
1 parent 5404a69 commit ba035ed

4 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
remapped/errors/remap-path-prefix-macro.rs
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// run-pass
2+
// check-run-results
3+
4+
// revisions: normal with-macro-scope without-macro-scope
5+
// compile-flags: --remap-path-prefix={{src-base}}=remapped
6+
// [with-macro-scope]compile-flags: -Zremap-path-scope=macro,diagnostics
7+
// [without-macro-scope]compile-flags: -Zremap-path-scope=diagnostics
8+
// no-remap-src-base: Manually remap, so the remapped path remains in .stderr file.
9+
10+
fn main() {
11+
println!("{}", file!());
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
remapped/errors/remap-path-prefix-macro.rs
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$DIR/remap-path-prefix-macro.rs

0 commit comments

Comments
 (0)