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 async functions handling for needless_pass_by_ref_mut lint #11184

Merged
merged 2 commits into from Jul 23, 2023

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Jul 18, 2023

Fixes #11179.

The problem with async is that "internals" are actually inside a closure from the ExprUseVisitor point of view, meaning we need to actually run the check on the closures' body as well.

changelog: none

r? @llogiq

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jul 18, 2023
@GuillaumeGomez
Copy link
Member Author

Fixed the failing lints on my code changes. ^^'

@llogiq
Copy link
Contributor

llogiq commented Jul 22, 2023

Thank you!

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 22, 2023

📌 Commit 5e9e462 has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jul 22, 2023

⌛ Testing commit 5e9e462 with merge d226dc6...

bors added a commit that referenced this pull request Jul 22, 2023
… r=llogiq

Fix async functions handling for `needless_pass_by_ref_mut` lint

Fixes #11179.

The problem with async is that "internals" are actually inside a closure from the `ExprUseVisitor` point of view, meaning we need to actually run the check on the closures' body as well.

r? `@llogiq`
@bors
Copy link
Collaborator

bors commented Jul 22, 2023

💔 Test failed - checks-action_test

@GuillaumeGomez
Copy link
Member Author

It failed because of the commit format. I added changelog: none to the first comment of the PR. Hopefully it should fix the issue?

@llogiq
Copy link
Contributor

llogiq commented Jul 23, 2023

@bors retry

@bors
Copy link
Collaborator

bors commented Jul 23, 2023

⌛ Testing commit 5e9e462 with merge 43577d5...

@bors
Copy link
Collaborator

bors commented Jul 23, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing 43577d5 to master...

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_pass_by_ref_mut false positive
4 participants