blob: 3307d654c17f2bd860f740606bf29b5aa91b4085 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
### What it does
Checks for calls to `std::mem::forget` with a value that does not implement `Drop`.
### Why is this bad?
Calling `std::mem::forget` is no different than dropping such a type. A different value may
have been intended.
### Example
```
struct Foo;
let x = Foo;
std::mem::forget(x);
```
|