Skip to content

Conversation

@teofr
Copy link
Contributor

@teofr teofr commented Oct 20, 2025

let-else statements do not allow the init expression to end with '}'

Fixes #15914

changelog: [manual_let_else]: If the init expression ends with '}' wrap it with (...)

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

rustbot commented Oct 20, 2025

r? @Jarcho

rustbot has assigned @Jarcho.
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

Copy link
Contributor

@Jarcho Jarcho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jarcho Jarcho added this pull request to the merge queue Oct 24, 2025
Merged via the queue into rust-lang:master with commit 3dcf399 Oct 24, 2025
11 of 13 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 24, 2025
@teofr teofr deleted the issue-15914 branch November 1, 2025 11:42
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.

manual_let_else should surround unsafe {} with brackets ().

3 participants