Skip to content

Commit e6b1fe4

Browse files
authored
Merge pull request rust-lang#2318 from rust-lang/tshepang-patch-3
improve flow
2 parents 30fb3d9 + eb676fd commit e6b1fe4

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,9 @@ But for strict testing, try to use the `ERROR` annotation as much as possible,
335335
including `//~?` annotations for diagnostics without span.
336336
For compile time diagnostics `error-pattern` should very rarely be necessary.
337337

338-
Per-line annotations (`//~`) are still checked in tests using `error-pattern`,
339-
to opt out of these checks in exceptional cases use `//@ compile-flags: --error-format=human`.
338+
Per-line annotations (`//~`) are still checked in tests using `error-pattern`.
339+
To opt out of these checks, use `//@ compile-flags: --error-format=human`.
340+
Do that only in exceptional cases.
340341

341342
### Error levels
342343

0 commit comments

Comments
 (0)