Skip to content

Commit 8f4357e

Browse files
committed
compiletest: Require //~ annotations even if error-pattern is specified
1 parent 9720c5c commit 8f4357e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/tests/ui.md

+3
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ But for strict testing, try to use the `ERROR` annotation as much as possible,
335335
including `//~?` annotations for diagnostics without span.
336336
For compile time diagnostics `error-pattern` should very rarely be necessary.
337337

338+
Per-line annotations (`//~`) are still checked in tests using `error-pattern`,
339+
to opt out of these checks in exceptional cases use `//@ compile-flags: --error-format=human`.
340+
338341
### Error levels
339342

340343
The error levels that you can have are:

0 commit comments

Comments
 (0)