Merge from rustc

This commit is contained in:
The rustc-dev-guide Cronjob Bot 2025-04-07 04:12:22 +00:00
commit 216eb512fb
1 changed files with 3 additions and 0 deletions

View File

@ -335,6 +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`,
to opt out of these checks in exceptional cases use `//@ compile-flags: --error-format=human`.
### Error levels ### Error levels
The error levels that you can have are: The error levels that you can have are: