diff options
| author | Tshepang Mbambo <hopsi@tuta.io> | 2025-07-28 09:09:41 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <hopsi@tuta.io> | 2025-07-28 09:09:41 +0200 |
| commit | b707493721a06acaba2cb0e0c59f6855f799293f (patch) | |
| tree | 1df04399f2621c6ca1b40c16d9c3091d1eb690e0 | |
| parent | 66445e7975a5f11324e61e2ebbfdbdfa2015be02 (diff) | |
| download | rust-b707493721a06acaba2cb0e0c59f6855f799293f.tar.gz rust-b707493721a06acaba2cb0e0c59f6855f799293f.zip | |
reword to avoid using a term used in a confusing manner, "error annotations"
| -rw-r--r-- | src/doc/rustc-dev-guide/src/tests/ui.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/ui.md b/src/doc/rustc-dev-guide/src/tests/ui.md index 8f872b3aa4b..782f78d7614 100644 --- a/src/doc/rustc-dev-guide/src/tests/ui.md +++ b/src/doc/rustc-dev-guide/src/tests/ui.md @@ -309,8 +309,9 @@ fn main((ؼ Use `//~?` to match an error without line information. `//~?` is precise and will not match errors if their line information is available. -For tests wishing to match against compiler diagnostics, error annotations should -be preferred over //@ error-pattern, //@ error-pattern is imprecise and non-exhaustive. +It should be preferred over `//@ error-pattern` +for tests wishing to match against compiler diagnostics, +due to `//@ error-pattern` being imprecise and non-exhaustive. ```rust,ignore //@ compile-flags: --print yyyy |
