transmute_undefined_repr: false positive when TypeId has been checked #8499
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
This might be wontfix territory, but here is an interesting case derived from https://github.com/AleoHQ/snarkVM/blob/71e39319b6fb5bcaddd48c95d32e2f80ac103954/algorithms/src/msm/variable_base/cuda.rs.
Vec<u32> is guaranteed to have the same layout as Vec<u32>.
Lint Name
transmute_undefined_repr
Reproducer
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: