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 [needless_return] incorrect suggestion when returning if sequence #10345

Merged
merged 2 commits into from
Feb 15, 2023

Conversation

J-ZhengLi
Copy link
Member

fixes: #10049


changelog: [needless_return]: fix incorrect suggestion on if sequence

@rustbot
Copy link
Collaborator

rustbot commented Feb 14, 2023

r? @xFrednet

(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 Feb 14, 2023
Copy link
Member

@xFrednet xFrednet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, overall, this already looks good. Three small comments, and then this should be ready for merge :)

clippy_lints/src/returns.rs Outdated Show resolved Hide resolved
clippy_lints/src/returns.rs Outdated Show resolved Hide resolved
clippy_lints/src/returns.rs Outdated Show resolved Hide resolved
@xFrednet
Copy link
Member

Looks good to me, thank you for the changes :)

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 15, 2023

📌 Commit 8b93eb8 has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Feb 15, 2023

⌛ Testing commit 8b93eb8 with merge d3d235d...

@bors
Copy link
Collaborator

bors commented Feb 15, 2023

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

@bors bors merged commit d3d235d into rust-lang:master Feb 15, 2023
@J-ZhengLi J-ZhengLi deleted the issue_10049 branch February 16, 2023 02:58
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.

needless_return autofix causes compilation error with ambiguous | chain
4 participants