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

Fix FP on while-let-on-iterator #5559

Merged
merged 1 commit into from
May 2, 2020

Conversation

alex-700
Copy link
Contributor

@alex-700 alex-700 commented May 2, 2020

  • fix is_refutable for slice patterns
  • fix is_refutable for bindings
  • add some TODO-s for cases, which can not be fixed easily

fixes #3780

changelog: fix FP on while-let-on-iterator for arrays and bindings

- fix `is_refutable` for slice patterns
- fix `is_refutable` for bindings
- add some TODO-s for cases, which can not be fixed easily
@phansch phansch added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 2, 2020
@flip1995
Copy link
Member

flip1995 commented May 2, 2020

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented May 2, 2020

📌 Commit d0c1f8a has been approved by flip1995

@bors
Copy link
Contributor

bors commented May 2, 2020

⌛ Testing commit d0c1f8a with merge 60538d6...

@bors
Copy link
Contributor

bors commented May 2, 2020

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 60538d6 to master...

@bors bors merged commit 60538d6 into rust-lang:master May 2, 2020
@alex-700 alex-700 deleted the fix-while-let-on-iterator-fp branch December 29, 2020 11:26
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.

Bad while_let_on_iterator suggestion when pattern is refutable
4 participants