mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
03ba508d0e
The first commit fixes rust-lang/rust-clippy#14802: when a slice is directly present, it must be dereferenced (instead of referenced -1 times) before being passed to `mem::size_of_val()`. The second commit triggers the lint in a `const` contact when MSRV ≥ 1.85. changelog: [`manual_slice_size_computation`]: fix ICE in suggestion to efficiently compute the size of a slice, and trigger the lint in `const` context as well