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

Assign correct span to continue expression #28106

Merged
merged 1 commit into from
Aug 30, 2015
Merged

Assign correct span to continue expression #28106

merged 1 commit into from
Aug 30, 2015

Conversation

marcusklaas
Copy link
Contributor

Fixes #28105.

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@eddyb
Copy link
Member

eddyb commented Aug 30, 2015

@bors r+

@bors
Copy link
Contributor

bors commented Aug 30, 2015

📌 Commit b69347c has been approved by eddyb

@bors
Copy link
Contributor

bors commented Aug 30, 2015

⌛ Testing commit b69347c with merge 2aa7f97...

bors added a commit that referenced this pull request Aug 30, 2015
fn main() {
'a: loop {
if false {
continue //~ ERROR use of undeclared label
Copy link
Member

Choose a reason for hiding this comment

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

This test will get broken as soon as the label thing gets fixed.

How about

fn main() {
    continue //~ ERROR `continue` outside of loop
    ;
    break //~ ERROR `break` outside of loop
    ;
}

instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a lot better. Can we still change this? @bors seems to be merging already..

Copy link
Member

Choose a reason for hiding this comment

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

If this doesn’t bounce, you can change it as a follow-up PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool. I'm making a new PR for a related issue any way.

@bors bors merged commit b69347c into rust-lang:master Aug 30, 2015
@marcusklaas marcusklaas deleted the continue branch August 31, 2015 05:50
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.

6 participants