File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/doc/rustc-dev-guide/src/tests Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,9 @@ fn main((ؼ
309
309
310
310
Use ` //~? ` to match an error without line information.
311
311
` //~? ` 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.
314
315
315
316
``` rust,ignore
316
317
//@ compile-flags: --print yyyy
@@ -320,8 +321,8 @@ be preferred over //@ error-pattern, //@ error-pattern is imprecise and non-exha
320
321
321
322
### ` error-pattern `
322
323
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.
325
326
326
327
Let's think about this test:
327
328
You can’t perform that action at this time.
0 commit comments