about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorMichael Wright <mikerite@lavabit.com>2018-11-04 10:02:49 +0200
committerMichael Wright <mikerite@lavabit.com>2018-11-04 10:02:49 +0200
commit0c1ffc1d1fdfd73bf326d1e7a886f59367374dc3 (patch)
tree719526c69e0e02c9b2b19adf7098efd71cd6bd07 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parenta07c2715594b17fca900c6c4a497c8fb6abde609 (diff)
downloadrust-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