2024-02-16 14:02:50 -06:00
|
|
|
//@ run-pass
|
|
|
|
//@ check-run-results
|
2023-08-25 09:23:23 -05:00
|
|
|
|
2024-02-16 14:02:50 -06:00
|
|
|
//@ 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
|
2023-08-25 09:23:23 -05:00
|
|
|
// no-remap-src-base: Manually remap, so the remapped path remains in .stderr file.
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
println!("{}", file!());
|
|
|
|
}
|