about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorMarijn Suijten <marijn@traverseresearch.nl>2021-01-12 11:35:44 +0100
committerMarijn Suijten <marijn@traverseresearch.nl>2021-01-19 20:05:40 +0100
commitd4bf59b6ef24042653951b69105a3a68542f3bbd (patch)
tree2fad486ca92efe97679f76e2022f2584929325e7 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
parent391bb218b5a79f32ddfacc668838fdfb06835f77 (diff)
downloadrust-d4bf59b6ef24042653951b69105a3a68542f3bbd.tar.gz
rust-d4bf59b6ef24042653951b69105a3a68542f3bbd.zip
size_of_in_element_count: Disable lint on division by byte-size
It is fairly common to divide some length in bytes by the byte-size of a
single element before creating a `from_raw_parts` slice or similar
operation. This lint would erroneously disallow such expressions.

Just in case, instead of simply disabling this lint in the RHS of a
division, keep track of the inversion and enable it again on recursive
division.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions