Skip to content

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 GuillaumeGomez force-pushed the needless_pass_by_ref_mut-async branch from cc136a0 to 2bd296f Compare July 18, 2023 20:11
@GuillaumeGomez GuillaumeGomez force-pushed the needless_pass_by_ref_mut-async branch from 2bd296f to 5e9e462 Compare July 18, 2023 20:21
@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
Contributor

bors commented Jul 22, 2023

📌 Commit 5e9e462 has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Contributor

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
Contributor

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
Contributor

bors commented Jul 23, 2023

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

@bors
Copy link
Contributor

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