diff options
| author | Marijn Suijten <marijn@traverseresearch.nl> | 2021-01-12 11:35:44 +0100 |
|---|---|---|
| committer | Marijn Suijten <marijn@traverseresearch.nl> | 2021-01-19 20:05:40 +0100 |
| commit | d4bf59b6ef24042653951b69105a3a68542f3bbd (patch) | |
| tree | 2fad486ca92efe97679f76e2022f2584929325e7 /src/test/codegen/src-hash-algorithm | |
| parent | 391bb218b5a79f32ddfacc668838fdfb06835f77 (diff) | |
| download | rust-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 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
