about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authordswij <dharmasw@outlook.com>2025-09-17 13:41:48 +0000
committerGitHub <noreply@github.com>2025-09-17 13:41:48 +0000
commitf37b9c05ef865918552e505265be71f69ce25ddb (patch)
tree20274e21d97a22c4f459799c6b442da88ec2a84f /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent49ae1d415d124a86def3b7a49100edd40d5bbbcd (diff)
parent1f8667982014babf392f08d45bb6d7bb1bc27d94 (diff)
downloadrust-f37b9c05ef865918552e505265be71f69ce25ddb.tar.gz
rust-f37b9c05ef865918552e505265be71f69ce25ddb.zip
fix(transmute_ptr_to_ref): don't suggest `.cast` when to-type is DST (#15621)
Fixes https://github.com/rust-lang/rust-clippy/issues/13357

Determining the exact placement of the `if !to_ref_ty.is_sized()`s
required meticulously constructing the suggestion/truth table of
`is_sized`, `msrv.meets` and `has_erased_regions`. The test cases should
hopefully cover all the new combinations.

changelog: [`transmute_ptr_to_ref`]: don't suggest `.cast` when to-type
is DST
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions