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:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-11-07 07:16:43 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-11-07 07:16:43 +0000
commit3bb88775de5a6f8f5c5743dd11af6c820122ccc7 (patch)
tree92d47bd200941ad73fd2e0a93a31e668fa239c12 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parent4c3408c61d1042bf0585de440041ee7edfc5b350 (diff)
parentc20e17f8ee44e05067402960dc12794c377fbe03 (diff)
downloadrust-3bb88775de5a6f8f5c5743dd11af6c820122ccc7.tar.gz
rust-3bb88775de5a6f8f5c5743dd11af6c820122ccc7.zip
Merge #3407
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 <mikerite@lavabit.com>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions