Skip to content

Handle potentially-shadowing bindings in manual_let_else #15118

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

notriddle
Copy link
Contributor

@notriddle notriddle commented Jun 23, 2025

This commit also adds more test cases, which already worked but were mentioned in the issue.

Fixes #9939

changelog: [manual_let_else]: correctly handle binding subpattern with unused name

@rustbot
Copy link
Collaborator

rustbot commented Jun 23, 2025

r? @llogiq

rustbot has assigned @llogiq.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 23, 2025
@notriddle notriddle force-pushed the notriddle/issue-9939 branch 2 times, most recently from ba936e3 to 1007571 Compare June 23, 2025 19:09
This commit also adds more test cases, which work fine but were
mentioned in the issue.
@notriddle notriddle force-pushed the notriddle/issue-9939 branch from 1007571 to cd68244 Compare June 23, 2025 19:14
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.

manual_let_else should reuse the identifier from the original let statement
3 participants