-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
New Lint: stacked_ifs
#12548
New Lint: stacked_ifs
#12548
Conversation
r? @Alexendoo rustbot has assigned @Alexendoo. Use |
f460408
to
9d8f529
Compare
9d8f529
to
21b4a45
Compare
I have also modified the code for the Binary expression part to now check for if statements in both the left-hand side and right-hand side and added an additional test accordingly. |
21b4a45
to
2f896be
Compare
This commit: - Adds a new late pass lint - Adds relevant UI tests
2f896be
to
994aa39
Compare
Pending discussion here: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/New.20lint.20process |
I'll open a new PR incorporating the changes from https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/FCP.20.60stacked_ifs.60 |
Closes #12483