about summary refs log tree commit diff
path: root/tests/ui/parser/match-arm-without-body.stderr
diff options
context:
space:
mode:
authorRust timing bot <rust-timer@users.noreply.github.com>2025-10-04 11:31:00 +0200
committerGitHub <noreply@github.com>2025-10-04 11:31:00 +0200
commit823632bbfbb2941cdc3c69130f19b39ea565a7aa (patch)
tree708d400c34370dfee537670607588999292d0bc3 /tests/ui/parser/match-arm-without-body.stderr
parent7950f244e7ef55b61a83d12f4662be643cd182d6 (diff)
parentd1d7b9472a18780499162b4a91beea729bc2c13b (diff)
downloadrust-perf-tmp.tar.gz
rust-perf-tmp.zip
Unrolled build for #147245 try-perf perf-tmp
Rollup merge of #147245 - karolzwolak:only-replace-intended-bar-not-all-in-pattern, r=lcnr

only replace the intended comma in pattern suggestions

Only suggest to replace the intended comma, not all bars in the pattern.
Fixes rust-lang/rust#143330.
This continues rust-lang/rust#143331, the credit for making the fix goes to `@A4-Tacks.` I just blessed tests and added a regression test.
Diffstat (limited to 'tests/ui/parser/match-arm-without-body.stderr')
-rw-r--r--tests/ui/parser/match-arm-without-body.stderr11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/ui/parser/match-arm-without-body.stderr b/tests/ui/parser/match-arm-without-body.stderr
index a65875b787a..59a323f2cc1 100644
--- a/tests/ui/parser/match-arm-without-body.stderr
+++ b/tests/ui/parser/match-arm-without-body.stderr
@@ -16,7 +16,7 @@ help: try adding parentheses to match on a tuple...
    |
 LL |         (Some(_),)
    |         +        +
-help: ...or a vertical bar to match on multiple alternatives
+help: ...or a vertical bar to match on alternatives
    |
 LL -         Some(_),
 LL +         Some(_) |
@@ -36,13 +36,10 @@ LL |
 LL |
 LL ~         _) => {}
    |
-help: ...or a vertical bar to match on multiple alternatives
+help: ...or a vertical bar to match on alternatives
    |
-LL ~         Some(_) |
-LL +
-LL +
-LL +
-LL ~         _ => {}
+LL -         Some(_),
+LL +         Some(_) |
    |
 
 error: expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`