blob: 5810455ee9550196aa5d32be49f06639723aefee (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
### What it does
Checks for `offset(_)`, `wrapping_`{`add`, `sub`}, etc. on raw pointers to
zero-sized types
### Why is this bad?
This is a no-op, and likely unintended
### Example
```
unsafe { (&() as *const ()).offset(1) };
```
|