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 semicolon_if_nothing_returned FP on let-else stmts #7955

Merged
merged 2 commits into from Nov 10, 2021

Conversation

dswij
Copy link
Member

@dswij dswij commented Nov 10, 2021

closes #7912

semicolon_if_nothing_returned now additionally checks if the statements ends in ; , this will also prevent let-else statements to be linted.

changelog: fix [semicolon_if_nothing_returned] FP firing on let-else

@rust-highfive
Copy link

r? @giraffate

(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 Nov 10, 2021
@dswij dswij changed the title Let else early return Fix semicolon_if_nothing_returned FP on let-else stmts Nov 10, 2021
@giraffate
Copy link
Contributor

@bors r+

It looks good, thanks!

@bors
Copy link
Collaborator

bors commented Nov 10, 2021

📌 Commit a003ca6 has been approved by giraffate

@bors
Copy link
Collaborator

bors commented Nov 10, 2021

⌛ Testing commit a003ca6 with merge 2e17035...

@bors
Copy link
Collaborator

bors commented Nov 10, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: giraffate
Pushing 2e17035 to master...

@bors bors merged commit 2e17035 into rust-lang:master Nov 10, 2021
@dswij dswij deleted the let-else-early-return branch November 11, 2021 02:28
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.

semicolon_if_nothing_returned FP on let-else statements
4 participants