-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add special case handling for matches! to format args as patterns #4462
Comments
I think this is due to not special-casing fn foo() {
1 | 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
| 11
| 12
| 13
| 14
| 16
| 61
| 1521
| 5
| 678
| 85394
| 143
} |
This feels like another example of #4306 -- and another example where it would be nice to defer to programmer discretion. |
@coolreader18's observation is correct. Since |
I edited the title and content to make clear. #4306 seems to be one of solutions of this issue but not only by that. To be more specifically, I think the first line including 2 items is the buggy part. |
I tested a bit with master and the version seems to put only one item for each line fn issue4462() -> isize {
- 100000001 | 100000002 | 100000003 | 100000004 | 100000005 | 100000006 | 100000007 | 100000008 | 100000009 | 100000010
+ 100000001
+ | 100000002
+ | 100000003
+ | 100000004
+ | 100000005
+ | 100000006
+ | 100000007
+ | 100000008
+ | 100000009
+ | 100000010
} |
Input
Output
Expected output
I expect the input form
Because it is the closest when we use
match
Or this kind of form is also acceptable in term of consistency
Meta
1.4.20-stable (48f6c32e 2020-08-09)
The text was updated successfully, but these errors were encountered: