diff options
| author | Michael Wright <mikerite@lavabit.com> | 2018-11-04 10:02:49 +0200 |
|---|---|---|
| committer | Michael Wright <mikerite@lavabit.com> | 2018-11-04 10:02:49 +0200 |
| commit | 0c1ffc1d1fdfd73bf326d1e7a886f59367374dc3 (patch) | |
| tree | 719526c69e0e02c9b2b19adf7098efd71cd6bd07 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff | |
| parent | a07c2715594b17fca900c6c4a497c8fb6abde609 (diff) | |
| download | rust-0c1ffc1d1fdfd73bf326d1e7a886f59367374dc3.tar.gz rust-0c1ffc1d1fdfd73bf326d1e7a886f59367374dc3.zip | |
Fix `possible_missing_comma` false positives
`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.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions
