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

No effect inclusive range #7556

Merged
merged 1 commit into from
Aug 12, 2021
Merged

Conversation

F3real
Copy link
Contributor

@F3real F3real commented Aug 11, 2021

I noticed during last PR that range expression is ExprKind::Struct while inclusive range is ExprKind::Call which was why it was not handled. This PR adds check for this case.

changelog: [no_effect] Report inclusive range in no_effect lint

@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 Aug 11, 2021
@flip1995
Copy link
Member

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Aug 12, 2021

📌 Commit 979ce29 has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Aug 12, 2021

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

@bors bors merged commit dd9fe5c into rust-lang:master Aug 12, 2021
@F3real F3real deleted the no_effect_inclusive_range branch August 25, 2021 15:27
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.

None yet

5 participants