about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTshepang Mbambo <hopsi@tuta.io>2025-07-28 09:06:59 +0200
committerGitHub <noreply@github.com>2025-07-28 09:06:59 +0200
commitbfca77bf84e25470210624ecad0cecfc4e791854 (patch)
tree1df04399f2621c6ca1b40c16d9c3091d1eb690e0
parent466198cfaf2ea988a98aee08df10ed1198a3874a (diff)
parentb707493721a06acaba2cb0e0c59f6855f799293f (diff)
downloadrust-bfca77bf84e25470210624ecad0cecfc4e791854.tar.gz
rust-bfca77bf84e25470210624ecad0cecfc4e791854.zip
Merge pull request #2520 from rust-lang/tshepang/error-pattern
cleaning some "error pattern" text
-rw-r--r--src/doc/rustc-dev-guide/src/tests/ui.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/ui.md b/src/doc/rustc-dev-guide/src/tests/ui.md
index b1feef9ed0c..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
@@ -320,8 +321,8 @@ be preferred over //@ error-pattern, //@ error-pattern is imprecise and non-exha
 
 ### `error-pattern`
 
-The `error-pattern` [directive](directives.md) can be used for runtime messages, which don't
-have a specific span, or in exceptional cases, for compile time messages.
+The `error-pattern` [directive](directives.md) can be used for runtime messages which don't
+have a specific span, or, in exceptional cases, for compile time messages.
 
 Let's think about this test: