about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-23 15:31:46 +0000
committerbors <bors@rust-lang.org>2022-10-23 15:31:46 +0000
commit628a79d6b67cc2acd2019f6c3c8e5adbc4384c9c (patch)
tree0d85fe47712a6d00b2fa563d1f0cc38a97b78d6d /library/std/src/sys/unix/stack_overflow.rs
parentfe57ab7c6414bbef66097c972e613492b8d95065 (diff)
parent4eaadd622d21948c488a4952b3c65fd5b9d852dc (diff)
downloadrust-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 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions