Skip to content

Conversation

@dfireBird
Copy link
Contributor

@dfireBird dfireBird commented Nov 20, 2025

Fixes #21039

I have to tried to fix this in two ways, one is of course the PR and other is this one: dfireBird@a83390f

I'm not sure which is good, so I'll change the PR accordingly as per review.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 20, 2025
@ChayimFriedman2
Copy link
Contributor

My preferred choice is neither; instead, implement functionality in the HIR layer to get all variables used by an expression/statement etc. This is the only way to cover all scenarios, including macros, well, and make sure such problems don't repeat with new language constructs.

Of course, this is more work, so doing one of those is also fine.

@dfireBird
Copy link
Contributor Author

I'm okay with closing this PR and implementing in the HIR layer.
I have some some questions about it, I'll probably open a Zulip topic to discuss it later this week.

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.

Extract function assist misses bindings only used in the else branch of let-else

3 participants