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