Skip to content
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

Fix possible_missing_comma false positives #3407

Merged
merged 4 commits into from Nov 7, 2018
Merged

Fix possible_missing_comma false positives #3407

merged 4 commits into from Nov 7, 2018

Conversation

ghost
Copy link

@ghost ghost commented Nov 4, 2018

possible_missing_comma should only trigger when the binary operator has
unary equivalent. Otherwise, it's not possible to insert a comma without
breaking compilation. The operators identified were +, &, * and -.

This fixes the specific examples given in issues #3244 and #3396
but doesn't address the conflict this lint has with the style of starting
a line with a binary operator.

Michael Wright added 2 commits November 4, 2018 10:02
`possible_missing_comma` should only trigger when the binary operator has
unary equivalent. Otherwise, it's not possible to insert a comma without
breaking compilation. The operators identified were `+`, `&`, `*` and `-`.

This fixes the specific examples given in issues #3244 and #3396
but doesn't address the conflict this lint has with the style of starting
a line with a binary operator.
@phansch phansch added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 5, 2018
Michael Wright added 2 commits November 6, 2018 07:00
@oli-obk
Copy link
Contributor

oli-obk commented Nov 7, 2018

bors r+

bors bot added a commit that referenced this pull request Nov 7, 2018
3407: Fix `possible_missing_comma` false positives r=oli-obk a=mikerite

`possible_missing_comma` should only trigger when the binary operator has
unary equivalent. Otherwise, it's not possible to insert a comma without
breaking compilation. The operators identified were `+`, `&`, `*` and `-`.

This fixes the specific examples given in issues #3244 and #3396
but doesn't address the conflict this lint has with the style of starting
a line with a binary operator.

Co-authored-by: Michael Wright <[email protected]>
@bors
Copy link
Contributor

bors bot commented Nov 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants