about summary refs log tree commit diff
path: root/tests/ui/errors/remap-path-prefix.rs
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2023-08-25 16:36:40 +0200
committerUrgau <urgau@numericable.fr>2023-10-17 10:11:31 +0200
commit297827fb86ae01d06fdc62184e73bfd2debdfe6d (patch)
treea7b4d9e077fa16a8f95c9675c8db67eb731d5c74 /tests/ui/errors/remap-path-prefix.rs
parent60e24462b68857e94454e74422cc95beb1d5b44a (diff)
downloadrust-297827fb86ae01d06fdc62184e73bfd2debdfe6d.tar.gz
rust-297827fb86ae01d06fdc62184e73bfd2debdfe6d.zip
[RFC 3127 - Trim Paths]: Add test for -Zremap-path-scope=diagnostics
Diffstat (limited to 'tests/ui/errors/remap-path-prefix.rs')
-rw-r--r--tests/ui/errors/remap-path-prefix.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/errors/remap-path-prefix.rs b/tests/ui/errors/remap-path-prefix.rs
index 393b8e22f1c..e3338c10fd7 100644
--- a/tests/ui/errors/remap-path-prefix.rs
+++ b/tests/ui/errors/remap-path-prefix.rs
@@ -1,4 +1,7 @@
+// revisions: normal with-diagnostic-scope without-diagnostic-scope
 // compile-flags: --remap-path-prefix={{src-base}}=remapped
+// [with-diagnostic-scope]compile-flags: -Zremap-path-scope=diagnostics
+// [without-diagnostic-scope]compile-flags: -Zremap-path-scope=object
 // no-remap-src-base: Manually remap, so the remapped path remains in .stderr file.
 
 // The remapped paths are not normalized by compiletest.