diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-12 09:41:42 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-12 09:41:42 +0800 |
| commit | 1fe079bd62e68d94d5eff51cea94014a7e3c4625 (patch) | |
| tree | 00d78e28812fb710d92e307b6531d5bd40f83ead /tests/ui/meta | |
| parent | 01e2fff90c7ed19e1d9fb828ebc012e7b9732297 (diff) | |
| download | rust-1fe079bd62e68d94d5eff51cea94014a7e3c4625.tar.gz rust-1fe079bd62e68d94d5eff51cea94014a7e3c4625.zip | |
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`).
Diffstat (limited to 'tests/ui/meta')
| -rw-r--r-- | tests/ui/meta/revision-bad.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/meta/revision-bad.rs b/tests/ui/meta/revision-bad.rs index c5193b19d9e..0af5624ff9c 100644 --- a/tests/ui/meta/revision-bad.rs +++ b/tests/ui/meta/revision-bad.rs @@ -5,6 +5,7 @@ //@ revisions: foo bar //@ should-fail //@ needs-run-enabled +//@ compile-flags: --remap-path-prefix={{src-base}}=remapped //@[foo] error-pattern:bar //@[bar] error-pattern:foo |
