]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/src/docs/crosspointer_transmute.txt
New upstream version 1.66.0+dfsg1
[rustc.git] / src / tools / clippy / src / docs / crosspointer_transmute.txt
CommitLineData
f2b60f7d
FG
1### What it does
2Checks for transmutes between a type `T` and `*T`.
3
4### Why is this bad?
5It's easy to mistakenly transmute between a type and a
6pointer to that type.
7
8### Example
9```
10core::intrinsics::transmute(t) // where the result type is the same as
11 // `*t` or `&t`'s
12```