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-10-25 06:43:32 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-10-25 06:43:32 +0000
commit757750d389ce65cb3c716c7872b15b386915c9f6 (patch)
treecfe00b6ddb3e526f95ad8200b811e5991910fbc5 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parent4c6201dceb31dac1fc5b6d3ed90e1cca240b958d (diff)
parentd53e6f87e94c83651ad1e22f294f6f59d8d1b5d1 (diff)
downloadrust-757750d389ce65cb3c716c7872b15b386915c9f6.tar.gz
rust-757750d389ce65cb3c716c7872b15b386915c9f6.zip
Merge #3346
3346: Add lint for calling `mem::discriminant` on a non-enum type r=flip1995 a=HMPerson1

Also, if the type is a reference to an enum, we suggest removing `&`s and/or dereferencing.

Fixes #3342

Co-authored-by: HMPerson1 <hmperson1@gmail.com>
Co-authored-by: Philipp Krones <hello@philkrones.com>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions