about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorTimo <30553356+y21@users.noreply.github.com>2025-05-20 22:35:15 +0000
committerGitHub <noreply@github.com>2025-05-20 22:35:15 +0000
commit03ba508d0e7f9d3e6450abee38031430ed11805d (patch)
tree669cba18007249006016fb8dae4f15548fab0252 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent5687ed5aae584b501f86ecd3cc47dc4f594d55d6 (diff)
parentfe4b4e832941b554b802b5ea2bbbe95806c093fe (diff)
downloadrust-03ba508d0e7f9d3e6450abee38031430ed11805d.tar.gz
rust-03ba508d0e7f9d3e6450abee38031430ed11805d.zip
Fixes `manual_slice_size_computation` ICE and triggers in `const` context (#14804)
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions