summaryrefslogtreecommitdiffstats
path: root/tests/ui/errors/remap-path-prefix-macro.rs
blob: 0ba706b0a8f3ebec9e9088941e80e68cb0d90c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
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!());
}