Skip to content

Commit b707493

Browse files
committed
reword to avoid using a term used in a confusing manner, "error annotations"
1 parent 66445e7 commit b707493

File tree

1 file changed

+3
-2
lines changed
  • src/doc/rustc-dev-guide/src/tests

1 file changed

+3
-2
lines changed

src/doc/rustc-dev-guide/src/tests/ui.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,9 @@ fn main((ؼ
309309

310310
Use `//~?` to match an error without line information.
311311
`//~?` is precise and will not match errors if their line information is available.
312-
For tests wishing to match against compiler diagnostics, error annotations should
313-
be preferred over //@ error-pattern, //@ error-pattern is imprecise and non-exhaustive.
312+
It should be preferred over `//@ error-pattern`
313+
for tests wishing to match against compiler diagnostics,
314+
due to `//@ error-pattern` being imprecise and non-exhaustive.
314315

315316
```rust,ignore
316317
//@ compile-flags: --print yyyy

0 commit comments

Comments
 (0)