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 if_same_then_else with if let conditions #8297

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Jan 16, 2022

fixes #7579

changelog: Don't lint if_same_then_else with if let conditions

@rust-highfive
Copy link

r? @Manishearth

(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 Jan 16, 2022
@Jarcho Jarcho force-pushed the if_same_then_else_7579 branch from e2f0a32 to aaf49a5 Compare January 16, 2022 15:31
@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jan 16, 2022

📌 Commit aaf49a5 has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Jan 16, 2022

⌛ Testing commit aaf49a5 with merge f230cdc...

bors added a commit that referenced this pull request Jan 16, 2022
Don't lint `if_same_then_else` with `if let` conditions

fixes #7579

changelog: Don't lint `if_same_then_else` with `if let` conditions
@bors
Copy link
Contributor

bors commented Jan 16, 2022

💔 Test failed - checks-action_test

@Jarcho Jarcho force-pushed the if_same_then_else_7579 branch from aaf49a5 to 4cddbb0 Compare January 16, 2022 22:49
@Jarcho
Copy link
Contributor Author

Jarcho commented Jan 16, 2022

Should be fixed now. Didn't account for the number of conditions and the number of blocks being different at first.

@Jarcho Jarcho force-pushed the if_same_then_else_7579 branch 2 times, most recently from e04127e to 9e4b39e Compare January 16, 2022 23:31
@Jarcho Jarcho force-pushed the if_same_then_else_7579 branch from 9e4b39e to 5461ed6 Compare January 16, 2022 23:39
@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jan 17, 2022

📌 Commit 5461ed6 has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Jan 17, 2022

⌛ Testing commit 5461ed6 with merge 537a7f3...

@bors
Copy link
Contributor

bors commented Jan 17, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Manishearth
Pushing 537a7f3 to master...

@bors bors merged commit 537a7f3 into rust-lang:master Jan 17, 2022
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.

FP in if_same_then_else for if-let
4 participants