File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -344,8 +344,7 @@ For checking runtime output, `//@ check-run-results` may be preferable.
344
344
345
345
Only use ` error-pattern ` if none of the above works.
346
346
347
- Line annotations ` //~ ` are still checked in tests using ` error-pattern ` .
348
- In exceptional cases, use ` //@ compile-flags: --error-format=human ` to opt out of these checks.
347
+ Line annotations ` //~ ` and ` error-pattern ` are compatible and can be used in the same test.
349
348
350
349
### Diagnostic kinds (error levels)
351
350
@@ -356,9 +355,12 @@ The diagnostic kinds that you can have are:
356
355
- ` NOTE `
357
356
- ` HELP `
358
357
- ` SUGGESTION `
358
+ - ` RAW `
359
359
360
360
The ` SUGGESTION ` kind is used for specifying what the expected replacement text
361
361
should be for a diagnostic suggestion.
362
+ The ` RAW ` kind can be used for matching on lines from non-structured output sometimes emitted
363
+ by the compiler instead of or in addition to structured json.
362
364
363
365
` ERROR ` and ` WARN ` kinds are required to be exhaustively covered by line annotations
364
366
` //~ ` by default.
You can’t perform that action at this time.
0 commit comments