Skip to content

Conversation

strlght
Copy link
Contributor

@strlght strlght commented Sep 20, 2013

No description provided.

bors added a commit that referenced this pull request Sep 21, 2013
@bors bors closed this Sep 21, 2013
@bors bors merged commit eb519b9 into rust-lang:master Sep 21, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 21, 2022
…flip1995

Improvement for  `equatable_if_let`

fixes rust-lang#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants