bors 075c212849 Auto merge of #3776 - notriddle:drop-bounds, r=oli-obk
Add a lint to warn on `T: Drop` bounds

**What it does:** Checks for generics with `std::ops::Drop` as bounds.

**Why is this bad?** `Drop` bounds do not really accomplish anything.
A type may have compiler-generated drop glue without implementing the
`Drop` trait itself. The `Drop` trait also only has one method,
`Drop::drop`, and that function is by fiat not callable in user code.
So there is really no use case for using `Drop` in trait bounds.

**Known problems:** None.

**Example:**
```rust
fn foo<T: Drop>() {}
```

Fixes #3773
2019-02-19 09:46:29 +00:00
..
2019-02-06 08:17:39 +01:00
2019-01-29 08:19:05 +01:00
2019-01-21 13:59:49 +01:00
2019-01-31 06:32:29 +02:00
2019-01-31 06:32:29 +02:00
2019-01-27 13:46:22 +01:00
2019-02-18 19:36:58 -07:00
2019-02-18 19:36:58 -07:00
2019-02-10 21:23:04 +01:00
2019-02-10 21:23:04 +01:00
2019-02-17 01:50:31 +01:00
2019-02-17 01:50:31 +01:00
2019-02-10 10:48:24 +01:00
2019-02-01 13:21:19 -05:00
2019-01-27 13:46:22 +01:00
2019-01-29 07:22:08 +02:00
2019-01-29 07:22:08 +02:00
2019-01-22 15:16:54 +01:00
2019-01-22 15:16:54 +01:00
2019-01-22 15:16:54 +01:00
2019-02-18 22:56:43 +00:00
2019-02-18 22:56:43 +00:00