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

Don't lint on match pattern-binding in ´question_mark` #9348

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

lukaslueg
Copy link
Contributor

@lukaslueg lukaslueg commented Aug 18, 2022

Fixes #9347

Technically it is possible to have a blank match-pattern that does nothing, and we fail to lint. But it's easier to be safe than sorry here.

changelog: [question_mark]: don't lint if lets with subpatterns

Fixes rust-lang#9347

Technically it is possible to have a blank match-pattern that does
nothing, and we fail to lint. But its easier to be safe than sorry here.
@rust-highfive
Copy link

r? @Alexendoo

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 18, 2022
@Alexendoo
Copy link
Member

Great, thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 18, 2022

📌 Commit e87a5a1 has been approved by Alexendoo

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Aug 18, 2022

⌛ Testing commit e87a5a1 with merge 81296cf...

bors added a commit that referenced this pull request Aug 18, 2022
Don't lint on match pattern-binding in ´question_mark`

Fixes #9347

Technically it is possible to have a blank match-pattern that does nothing, and we fail to lint. But it's easier to be safe than sorry here.
@Alexendoo
Copy link
Member

And yeah no need to worry about weird things like _ @ pat

@bors
Copy link
Collaborator

bors commented Aug 18, 2022

💔 Test failed - checks-action_test

@Alexendoo
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 18, 2022

💡 This pull request was already approved, no need to approve it again.

  • This pull request previously failed. You should add more commits to fix the bug, or use retry to trigger a build again.

@bors
Copy link
Collaborator

bors commented Aug 18, 2022

📌 Commit e87a5a1 has been approved by Alexendoo

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Aug 18, 2022

⌛ Testing commit e87a5a1 with merge eeaaba3...

@bors
Copy link
Collaborator

bors commented Aug 18, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Alexendoo
Pushing eeaaba3 to master...

@bors bors merged commit eeaaba3 into rust-lang:master Aug 18, 2022
@lukaslueg lukaslueg deleted the issue9347 branch August 19, 2022 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

false positive for clippy::question_mark
4 participants