improve flow

This commit is contained in:
Tshepang Mbambo 2025-04-07 06:42:37 +02:00 committed by GitHub
parent 5f6d843eef
commit e76ab78d1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -335,8 +335,9 @@ But for strict testing, try to use the `ERROR` annotation as much as possible,
including `//~?` annotations for diagnostics without span. including `//~?` annotations for diagnostics without span.
For compile time diagnostics `error-pattern` should very rarely be necessary. For compile time diagnostics `error-pattern` should very rarely be necessary.
Per-line annotations (`//~`) are still checked in tests using `error-pattern`, Per-line annotations (`//~`) are still checked in tests using `error-pattern`.
to opt out of these checks in exceptional cases use `//@ compile-flags: --error-format=human`. To opt out of these checks, use `//@ compile-flags: --error-format=human`.
Do that only in exceptional cases.
### Error levels ### Error levels