Skip to content

Commit 1fe079b

Browse files
committed
Remap path refix in the panic message
Otherwise `error-pattern` on the test run stderr can incorrectly match if e.g. the paths in panic backtrace has a matching substring (like if we look for `bar` in the error pattern but username is `baron`).
1 parent 01e2fff commit 1fe079b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ui/meta/revision-bad.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//@ revisions: foo bar
66
//@ should-fail
77
//@ needs-run-enabled
8+
//@ compile-flags: --remap-path-prefix={{src-base}}=remapped
89
//@[foo] error-pattern:bar
910
//@[bar] error-pattern:foo
1011

0 commit comments

Comments
 (0)