Skip to content

Commit bfca77b

Browse files
authored
Merge pull request #2520 from rust-lang/tshepang/error-pattern
cleaning some "error pattern" text
2 parents 466198c + b707493 commit bfca77b

File tree

1 file changed

+5
-4
lines changed
  • src/doc/rustc-dev-guide/src/tests

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 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
@@ -320,8 +321,8 @@ be preferred over //@ error-pattern, //@ error-pattern is imprecise and non-exha
320321

321322
### `error-pattern`
322323

323-
The `error-pattern` [directive](directives.md) can be used for runtime messages, which don't
324-
have a specific span, or in exceptional cases, for compile time messages.
324+
The `error-pattern` [directive](directives.md) can be used for runtime messages which don't
325+
have a specific span, or, in exceptional cases, for compile time messages.
325326

326327
Let's think about this test:
327328

0 commit comments

Comments
 (0)