-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix boxed_local
suggestion
#3794
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
Conversation
Don't warn about an argument that is moved into a closure. ExprUseVisitor doesn't walk into nested bodies so use a new visitor that collects the variables that are moved into closures. Fixes #3739
This seems like it could be a common issue with other uses of |
Use ExprUseVisitor correctly instead.
I was wrong about |
☔ The latest upstream changes (presumably #3767) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r+ |
📌 Commit 6937d55 has been approved by |
Fix `boxed_local` suggestion Don't warn about an argument that is moved into a closure. ExprUseVisitor doesn't walk into nested bodies so use a new visitor that collects the variables that are moved into closures. Fixes #3739
☀️ Test successful - checks-travis, status-appveyor |
Don't warn about an argument that is moved into a closure.
ExprUseVisitor doesn't walk into nested bodies so use a new
visitor that collects the variables that are moved into closures.
Fixes #3739