diff options
| author | bors <bors@rust-lang.org> | 2022-10-23 15:31:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-23 15:31:46 +0000 |
| commit | 628a79d6b67cc2acd2019f6c3c8e5adbc4384c9c (patch) | |
| tree | 0d85fe47712a6d00b2fa563d1f0cc38a97b78d6d /src/test/rustdoc-ui/coverage/enum-tuple.rs | |
| parent | fe57ab7c6414bbef66097c972e613492b8d95065 (diff) | |
| parent | 4eaadd622d21948c488a4952b3c65fd5b9d852dc (diff) | |
| download | rust-628a79d6b67cc2acd2019f6c3c8e5adbc4384c9c.tar.gz rust-628a79d6b67cc2acd2019f6c3c8e5adbc4384c9c.zip | |
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.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions
