Skip to content

Fix example in std::Option #9368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2013
Merged

Fix example in std::Option #9368

merged 1 commit into from
Sep 21, 2013

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