Skip to content
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

Make use of or_patterns feature #5322

Merged
merged 1 commit into from Mar 16, 2020
Merged

Make use of or_patterns feature #5322

merged 1 commit into from Mar 16, 2020

Conversation

phansch
Copy link
Member

@phansch phansch commented Mar 16, 2020

changelog: none

@phansch phansch changed the title Make use or or_patterns feature Make use of or_patterns feature Mar 16, 2020
match guard {
Guard::If(if_expr) => self.visit_expr(if_expr),
}
if let Some(Guard::If(if_expr)) = arm.guard {
Copy link
Member Author

@phansch phansch Mar 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not or_patterns but I couldn't resist fixing it

@matthiaskrgr
Copy link
Member

matthiaskrgr commented Mar 16, 2020

@bors r+

Cool! Maybe one day we will have a lint for this :)

@bors
Copy link
Contributor

bors commented Mar 16, 2020

📌 Commit 548c417 has been approved by matthiaskrgr

@bors
Copy link
Contributor

bors commented Mar 16, 2020

Testing commit 548c417 with merge 24f6d64...

@bors
Copy link
Contributor

bors commented Mar 16, 2020

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: matthiaskrgr
Pushing 24f6d64 to master...

@bors bors merged commit 24f6d64 into rust-lang:master Mar 16, 2020
2 of 3 checks passed
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.

None yet

3 participants