rust/tests
Michael Wright 67a9f20c91 Fix map_clone bad suggestion
`cloned` requires that the elements of the iterator must be references. This
change determines if that is the case by examining the type of the closure
argument and suggesting `.cloned` only if it is a reference. When the closure
argument is not a reference, it suggests removing the `map` call instead.

A minor problem with this change is that the new check sometimes overlaps
with the `clone_on_copy` lint.

Fixes #498
2019-01-15 08:09:47 +02:00
..
auxiliary Remove all copyright license headers 2019-01-08 21:46:39 +01:00
run-pass Remove all copyright license headers 2019-01-08 21:46:39 +01:00
ui Fix map_clone bad suggestion 2019-01-15 08:09:47 +02:00
ui-toml Remove all copyright license headers 2019-01-08 21:46:39 +01:00
compile-test.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
dogfood.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
matches.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
needless_continue_helpers.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
versioncheck.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00