granite-rust/tests
Ryan Cumming 9bd4e5469e Don't suggest cloned() for map Box deref
Boxes are a bit magic in that they need to use `*` to get an owned value
out of the box. They implement `Deref` but that only returns a
reference. This means an easy way to convert an `Option<Box<T>>` to an
`<Option<T>` is:

```
box_option.map(|b| *b)
```

However, since b36bb0a6 the `map_clone` lint is detecting this as an
attempt to copy the box. Fix by excluding boxes completely from the
deref part of this lint.

Fixes #3274
2018-10-08 06:20:32 +11:00
..
auxiliary Add license header to Rust files 2018-10-06 09:43:08 -07:00
run-pass Add license header to Rust files 2018-10-06 09:43:08 -07:00
ui Don't suggest cloned() for map Box deref 2018-10-08 06:20:32 +11:00
ui-toml Add license header to Rust files 2018-10-06 09:43:08 -07:00
compile-test.rs Add license header to Rust files 2018-10-06 09:43:08 -07:00
dogfood.rs Add license header to Rust files 2018-10-06 09:43:08 -07:00
matches.rs Add license header to Rust files 2018-10-06 09:43:08 -07:00
needless_continue_helpers.rs Add license header to Rust files 2018-10-06 09:43:08 -07:00
versioncheck.rs Add license header to Rust files 2018-10-06 09:43:08 -07:00