Skip to content

Comments

Add brackets around unsafe or labeled block used in else#16603

Merged
llogiq merged 1 commit intorust-lang:masterfrom
samueltardieu:issues/16602
Feb 21, 2026
Merged

Add brackets around unsafe or labeled block used in else#16603
llogiq merged 1 commit intorust-lang:masterfrom
samueltardieu:issues/16602

Conversation

@samueltardieu
Copy link
Member

@samueltardieu samueltardieu commented Feb 21, 2026

Fixes #16602


changelog: [manual_let_else]: use brackets around unsafe or labeled block used in else

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 21, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 21, 2026

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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: 7 candidates
  • 7 candidates expanded to 7 candidates
  • Random selection from Jarcho, dswij, llogiq

Copy link
Contributor

@llogiq llogiq left a comment

Choose a reason for hiding this comment

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

@llogiq llogiq added this pull request to the merge queue Feb 21, 2026
Merged via the queue into rust-lang:master with commit 2acc3e3 Feb 21, 2026
16 of 19 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 21, 2026
@samueltardieu samueltardieu deleted the issues/16602 branch February 21, 2026 18:10
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 suggestion is invalid syntax when the else arm is an unsafe block

3 participants