Skip to content
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

Labelled for & for-desugaring clean up #9054

Closed
wants to merge 2 commits into from

Conversation

huonw
Copy link
Member

@huonw huonw commented Sep 8, 2013

The following parses and works as expected with this change:

'foo: for i in range(0, 10) {
    for j in range(0, 10) {
        if i + j == 15 { break 'foo; }
    }
}

`for` desugars to `loop` so it is trivial to just desugar to `loop` while
retaining any label.
bors added a commit that referenced this pull request Sep 8, 2013
The following parses and works as expected with this change:

```rust
'foo: for i in range(0, 10) {
    for j in range(0, 10) {
        if i + j == 15 { break 'foo; }
    }
}
```
@bors bors closed this Sep 8, 2013
@huonw huonw deleted the labelled-for branch November 25, 2013 10:55
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 30, 2022
…raffate

STRING_ADD example

changelog: none
STRING_ADD example, how it should be
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