rust/tests
bors 628a79d6b6 Auto merge of #9368 - nahuakang:improve-equatable-if-let, r=flip1995
Improvement for  `equatable_if_let`

fixes #9221

This PR makes sure that enums or structs not implementing `PartialEq` trait but still using the `if let` patterns can be linted to be rewritten with `matches!`.

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

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

---

changelog: Improve [`equatable_if_let`] with additional `matches!` suggestions.
2022-10-23 15:31:46 +00:00
..
test_utils
ui Auto merge of #9368 - nahuakang:improve-equatable-if-let, r=flip1995 2022-10-23 15:31:46 +00:00
ui-cargo
ui-internal
ui-toml [unwrap_used], [expect_used] do not lint in test cfg 2022-10-21 15:27:25 +02:00
workspace_test
check-fmt.rs
clippy.toml
compile-test.rs
dogfood.rs Add lintcheck to packages linted by dogfood test 2022-10-22 07:37:10 -04:00
integration.rs
lint_message_convention.rs
missing-test-files.rs
versioncheck.rs
workspace.rs