Files
rust/tests/ui
bors ad9ceeebdc Auto merge of #6685 - magurotuna:filter_map_identity, r=phansch
Add new lint `filter_map_identity`

<!--
Thank you for making Clippy better!

We're collecting our changelog from pull request descriptions.
If your PR only includes internal changes, you can just write
`changelog: none`. Otherwise, please write a short comment
explaining your change.

If your PR fixes an issue, you can add "fixes #issue_number" into this
PR description. This way the issue will be automatically closed when
your PR is merged.

If you added a new lint, here's a checklist for things that will be
checked during review or continuous integration.

- \[x] Followed [lint naming conventions][lint_naming]
- \[x] Added passing UI tests (including committed `.stderr` file)
- \[x] `cargo test` passes locally
- \[x] Executed `cargo dev update_lints`
- \[x] Added lint documentation
- \[x] Run `cargo dev fmt`

[lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints

Note that you can skip the above if you are just opening a WIP PR in
order to get feedback.

Delete this line and everything above before opening your PR.
-->

This commit adds a new lint named filter_map_identity.
This lint is the same as `flat_map_identity` except that it checks for the usage of `filter_map`.

---

Closes #6643

changelog: Added a new lint: `filter_map_identity`
2021-02-07 09:55:32 +00:00
..
2021-01-07 18:54:12 -03:00
2020-01-07 18:38:12 +09:00
2019-01-08 21:46:39 +01:00
2019-09-27 18:01:04 +02:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-06-10 01:35:47 +00:00
2019-10-15 09:58:11 +02:00
2020-01-07 18:38:12 +09:00
2021-02-02 16:36:32 +01:00
2021-02-02 16:36:32 +01:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2019-12-21 16:20:30 +01:00
2021-02-02 08:59:23 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2020-01-12 19:54:17 +08:00
2020-01-12 19:54:17 +08:00
2020-03-03 18:06:59 -08:00
2020-02-23 22:36:15 -08:00
2019-10-15 09:58:11 +02:00
2020-11-08 18:32:12 -05:00
2020-04-20 15:47:08 -04:00
2020-01-19 10:14:03 +09:00
2020-01-07 18:38:12 +09:00
2019-01-08 21:46:39 +01:00
2019-12-24 03:06:52 +07:00
2019-12-24 03:06:52 +07:00
2020-01-31 20:21:10 +01:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-01-04 11:20:11 -06:00
2020-01-04 11:20:11 -06:00
2019-10-15 09:58:11 +02:00
2020-01-26 07:01:16 +09:00
2020-01-07 18:38:12 +09:00
2019-08-01 22:20:08 +09:00
2019-10-26 21:54:04 +02:00
2020-01-14 08:32:33 +09:00
2020-11-08 18:32:12 -05:00
2019-10-15 09:58:11 +02:00
2020-01-07 18:38:12 +09:00
2020-04-23 16:30:06 -07:00
2020-04-26 18:00:51 +03:00
2020-02-04 22:53:24 +01:00
2020-01-30 12:06:42 +09:00
2020-01-07 18:38:12 +09:00
2019-12-31 09:22:35 -08:00
2020-01-10 04:35:37 +09:00
2020-07-10 07:39:28 -04:00
2020-01-26 07:01:16 +09:00
2019-09-20 23:21:37 +09:00
2019-12-03 18:37:07 +01:00
2020-01-07 18:38:12 +09:00
2019-01-08 21:46:39 +01:00
2020-03-03 10:48:08 +01:00
2019-12-18 18:59:43 +02:00
2020-11-08 18:32:12 -05:00
2020-03-20 22:52:53 +00:00
2020-04-08 08:37:20 -07:00
2020-01-20 10:56:02 +09:00
2019-10-15 09:58:11 +02:00
2019-10-15 09:58:11 +02:00
2019-08-15 22:58:32 +02:00
2020-03-04 00:56:43 +01:00
2020-03-04 00:56:43 +01:00
2019-12-03 13:42:05 +01:00
2020-09-10 15:23:38 +02:00
2019-11-10 15:52:59 +02:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2019-04-02 11:39:43 -03:00
2019-11-25 18:12:52 +03:00
2019-11-25 18:12:52 +03:00
2020-01-07 18:38:12 +09:00
2020-04-02 18:31:31 -07:00
2019-12-27 22:07:55 +09:00
2019-12-27 22:07:55 +09:00
2019-08-14 19:34:50 +02:00
2019-08-14 19:34:50 +02:00
2019-08-14 19:35:17 +02:00
2020-01-07 18:38:12 +09:00
2020-03-29 22:22:36 +02:00
2020-01-12 06:08:58 +09:00
2020-01-12 06:08:58 +09:00
2020-03-10 18:00:37 -04:00
2020-03-10 18:00:37 -04:00
2019-05-08 09:24:24 +02:00
2021-02-06 00:10:52 +09:00
2019-11-15 22:39:27 +01:00
2019-11-15 22:39:27 +01:00
2019-10-02 22:38:00 +07:00