Skip to content

fix: use grouped annotation for add_label_to_loop#22419

Merged
lnicola merged 2 commits into
rust-lang:masterfrom
A4-Tacks:add-loop-label-group
May 23, 2026
Merged

fix: use grouped annotation for add_label_to_loop#22419
lnicola merged 2 commits into
rust-lang:masterfrom
A4-Tacks:add-loop-label-group

Conversation

@A4-Tacks
Copy link
Copy Markdown
Member

Example

fn main() {
    $0loop {
        break;
        continue;
    }
}

Before this PR

fn main() {
    ${1:'l}: loop {
        break ${2:'l};
        continue ${0:'l};
    }
}

After this PR

fn main() {
    ${0:'l}: loop {
        break ${0:'l};
        continue ${0:'l};
    }
}

Example
---
```rust
fn main() {
    $0loop {
        break;
        continue;
    }
}
```

**Before this PR**

```rust
fn main() {
    ${1:'l}: loop {
        break ${2:'l};
        continue ${0:'l};
    }
}
```

**After this PR**

```rust
fn main() {
    ${0:'l}: loop {
        break ${0:'l};
        continue ${0:'l};
    }
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 22, 2026
@lnicola lnicola added this pull request to the merge queue May 23, 2026
Merged via the queue into rust-lang:master with commit 4a32bbe May 23, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 23, 2026
@A4-Tacks A4-Tacks deleted the add-loop-label-group branch May 24, 2026 01:34
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.

3 participants