Skip to content

Commit a08228d

Browse files
committed
bless tests
1 parent 4735c21 commit a08228d

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

tests/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ help: try adding parentheses to match on a tuple...
3232
|
3333
LL | (Nucleotide::Adenine, Nucleotide::Cytosine, _) => true
3434
| + +
35-
help: ...or a vertical bar to match on multiple alternatives
35+
help: ...or a vertical bar to match on alternative
3636
|
3737
LL - Nucleotide::Adenine, Nucleotide::Cytosine, _ => true
38-
LL + Nucleotide::Adenine | Nucleotide::Cytosine | _ => true
38+
LL + Nucleotide::Adenine | Nucleotide::Cytosine, _ => true
3939
|
4040

4141
error: unexpected `,` in pattern

tests/ui/feature-gates/feature-gate-never_patterns.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ help: try adding parentheses to match on a tuple...
88
|
99
LL | (Some(_),)
1010
| + +
11-
help: ...or a vertical bar to match on multiple alternatives
11+
help: ...or a vertical bar to match on alternative
1212
|
1313
LL - Some(_),
1414
LL + Some(_) |

tests/ui/parser/match-arm-without-body.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ fn main() {
1717
Some(_),
1818
//~^ ERROR unexpected `,` in pattern
1919
//~| HELP try adding parentheses to match on a tuple
20-
//~| HELP or a vertical bar to match on multiple alternatives
20+
//~| HELP or a vertical bar to match on alternative
2121
}
2222
match Some(false) {
2323
Some(_),
2424
//~^ ERROR unexpected `,` in pattern
2525
//~| HELP try adding parentheses to match on a tuple
26-
//~| HELP or a vertical bar to match on multiple alternatives
26+
//~| HELP or a vertical bar to match on alternative
2727
_ => {}
2828
}
2929
match Some(false) {

tests/ui/parser/match-arm-without-body.stderr

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ help: try adding parentheses to match on a tuple...
1616
|
1717
LL | (Some(_),)
1818
| + +
19-
help: ...or a vertical bar to match on multiple alternatives
19+
help: ...or a vertical bar to match on alternative
2020
|
2121
LL - Some(_),
2222
LL + Some(_) |
@@ -36,13 +36,10 @@ LL |
3636
LL |
3737
LL ~ _) => {}
3838
|
39-
help: ...or a vertical bar to match on multiple alternatives
39+
help: ...or a vertical bar to match on alternative
4040
|
41-
LL ~ Some(_) |
42-
LL +
43-
LL +
44-
LL +
45-
LL ~ _ => {}
41+
LL - Some(_),
42+
LL + Some(_) |
4643
|
4744

4845
error: expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`

0 commit comments

Comments
 (0)