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

Change if_same_then_else to be a style lint #11809

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

hrxi
Copy link
Contributor

@hrxi hrxi commented Nov 14, 2023

CC #3770

From #3770 (comment) (@flip1995):

Oh I thought I replied to this: I definitely see now that having this
as a correctness lint might be the wrong categorization. What we might
want to do is to just allow this lint, if there are comments in the
arm bodies. But a good first step would be to downgrade this lint to
style or complexity. I would vote for style since merging two arms is
not always less complex.

changelog: [if_same_then_else]: Change to be a style lint

@rustbot
Copy link
Collaborator

rustbot commented Nov 14, 2023

r? @Alexendoo

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 14, 2023
@hrxi hrxi force-pushed the pr_if_same_then_else_style branch from 17893f4 to 8ba1b0e Compare November 14, 2023 23:29
CC rust-lang#3770

From rust-lang#3770 (comment) (@flip1995):

> Oh I thought I replied to this: I definitely see now that having this
> as a correctness lint might be the wrong categorization. What we might
> want to do is to just allow this lint, if there are comments in the
> arm bodies. But a good first step would be to downgrade this lint to
> style or complexity. I would vote for style since merging two arms is
> not always less complex.
@hrxi hrxi force-pushed the pr_if_same_then_else_style branch from 8ba1b0e to b3073c5 Compare November 14, 2023 23:33
@Alexendoo
Copy link
Member

Yeah seems reasonable to move it out of correctness

@bors r+

@bors
Copy link
Contributor

bors commented Nov 15, 2023

📌 Commit b3073c5 has been approved by Alexendoo

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Nov 15, 2023

⌛ Testing commit b3073c5 with merge 3ea5bcf...

@bors
Copy link
Contributor

bors commented Nov 15, 2023

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

@bors bors merged commit 3ea5bcf into rust-lang:master Nov 15, 2023
4 checks passed
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.

4 participants