rust/tests
bors da0538eaca Auto merge of #7330 - xFrednet:0000-refactor-map-identity, r=flip1995
Refactoring identity function lints

I've noticed that we have several lints that all check for identity functions and each used their own check implementation. I moved the `is_expr_identity_function` function to `clippy_utils` and adapted all lints to reuse that one function. This should make the addition of new lints like this also easier in the future.

I've also moved the `map_identity` lint into the `methods` module. It's probably the best to review this PR by checking each commit individually. And that's it, have a great day 🙃

changelog: none
2021-06-09 08:27:05 +00:00
..
auxiliary
cargo
ui Auto merge of #7330 - xFrednet:0000-refactor-map-identity, r=flip1995 2021-06-09 08:27:05 +00:00
ui-cargo
ui-internal Show macro name in 'this error originates in macro' message 2021-05-12 19:03:06 -04:00
ui-toml Add avoid_breaking_exported_api config option 2021-05-26 16:35:22 -05:00
clippy.toml Add clippy.toml to project and tests 2021-05-26 16:53:13 -05:00
compile-test.rs Add clippy.toml to project and tests 2021-05-26 16:53:13 -05:00
dogfood.rs Adding the ability to invalidate caches to force metadata collection 2021-05-20 22:30:49 +02:00
fmt.rs
integration.rs
lint_message_convention.rs
missing-test-files.rs
versioncheck.rs