Skip to content

Commit 5a8f963

Browse files
committed
fix wording; we're replacing coma with a bar
1 parent 934ad74 commit 5a8f963

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/ui/suggestions/only-replace-intended-bar-not-all-in-pattern.fixed renamed to tests/ui/suggestions/only-replace-intended-coma-not-all-in-pattern.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ run-rustfix
22

33
// Regression test for issue #143330.
4-
// Ensure we suggest to replace only the intended bar with a comma, not all bars in the pattern.
4+
// Ensure we suggest to replace only the intended coma with a bar, not all commas in the pattern.
55

66
fn main() {
77
struct Foo { x: i32, ch: char }

tests/ui/suggestions/only-replace-intended-bar-not-all-in-pattern.rs renamed to tests/ui/suggestions/only-replace-intended-coma-not-all-in-pattern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ run-rustfix
22

33
// Regression test for issue #143330.
4-
// Ensure we suggest to replace only the intended bar with a comma, not all bars in the pattern.
4+
// Ensure we suggest to replace only the intended coma with a bar, not all commas in the pattern.
55

66
fn main() {
77
struct Foo { x: i32, ch: char }

tests/ui/suggestions/only-replace-intended-bar-not-all-in-pattern.stderr renamed to tests/ui/suggestions/only-replace-intended-coma-not-all-in-pattern.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: unexpected `,` in pattern
2-
--> $DIR/only-replace-intended-bar-not-all-in-pattern.rs:12:30
2+
--> $DIR/only-replace-intended-coma-not-all-in-pattern.rs:12:30
33
|
44
LL | Foo { x: 2, ch: ',' }, Foo { x: 3, ch: '@' } => (),
55
| ^

0 commit comments

Comments
 (0)