Skip to content

fix: Incorrect closure capturing for let exprs #20161

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

Merged
merged 1 commit into from
Jul 3, 2025

Conversation

ShoyuVanilla
Copy link
Member

@ShoyuVanilla ShoyuVanilla commented Jul 3, 2025

Fixes #20155

In #20039, I was obssesed with the seeming control flow resemblance with rustc and missed the fact in its call chain, rustc eventually visits the bind pattern inside let expressions 😅

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 3, 2025
@Veykril Veykril added this pull request to the merge queue Jul 3, 2025
Merged via the queue into rust-lang:master with commit 87940a9 Jul 3, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 3, 2025
@ShoyuVanilla ShoyuVanilla deleted the closure-capture branch July 3, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect closure capture analysis
3 participants