Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bfc23e2

Browse files
committed
Document require-annotations-for-level
1 parent 1ca8d60 commit bfc23e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui_test/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ their command specifies, or the test will fail without even being run.
3838
* you can specify this multiple times, accumulating all the env vars
3939
* `//@normalize-stderr-test: "REGEX" -> "REPLACEMENT"` replaces all matches of `REGEX` in the stderr with `REPLACEMENT`. The replacement may specify `$1` and similar backreferences to paste captures.
4040
* you can specify multiple such commands, there is no need to create a single regex that handles multiple replacements that you want to perform.
41+
* `//@require-annotations-for-level: LEVEL` can be used to change the level of diagnostics that require a corresponding annotation.
42+
* this is only useful if there are any annotations like `HELP`, `WARN` or `NOTE`, as these would automatically require annotations for all other diagnostics of the same or higher level.
4143

4244
## Significant differences to compiletest-rs
4345

0 commit comments

Comments
 (0)