RS.CLIPPY.CROSSPOINTER_TRANSMUTE
Transmutes that have to or from types that are a pointer to the other
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: crosspointer_transmute. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for transmutes between a type T and *T.
Why is this bad?
It's easy to mistakenly transmute between a type and a pointer to that type.
Example
core::intrinsics::transmute(t) // where the result type is the same as
// `*t` or `&t`\'s