rust/tests
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
..
auxiliary Remove all copyright license headers 2019-01-08 21:46:39 +01:00
ui Auto merge of #3776 - notriddle:drop-bounds, r=oli-obk 2019-02-19 09:46:29 +00:00
ui-toml Updating code to ignore rustfmt issue. 2019-02-01 13:21:19 -05:00
compile-test.rs Move run-pass tests to UI tests 2019-02-06 08:17:39 +01:00
dogfood.rs Fix dogfood tests on Appveyor 2019-01-26 11:10:13 +02:00
matches.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
missing-test-files.rs removing redundant closures in the whole project 2019-02-10 13:35:44 +01:00
needless_continue_helpers.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
versioncheck.rs test(versioncheck): Use .no_deps() 2019-01-25 21:53:44 +01:00