mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-31 09:04:18 +00:00
[RFC 3127 - Trim Paths]: Add test for -Zremap-path-scope=macro
This commit is contained in:
parent
ab92dc3786
commit
60e24462b6
@ -0,0 +1 @@
|
||||
remapped/errors/remap-path-prefix-macro.rs
|
12
tests/ui/errors/remap-path-prefix-macro.rs
Normal file
12
tests/ui/errors/remap-path-prefix-macro.rs
Normal 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!());
|
||||
}
|
@ -0,0 +1 @@
|
||||
remapped/errors/remap-path-prefix-macro.rs
|
@ -0,0 +1 @@
|
||||
$DIR/remap-path-prefix-macro.rs
|
Loading…
Reference in New Issue
Block a user