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

use of undeclared label error message has a wrong span #28109

Closed
nagisa opened this issue Aug 30, 2015 · 0 comments
Closed

use of undeclared label error message has a wrong span #28109

nagisa opened this issue Aug 30, 2015 · 0 comments

Comments

@nagisa
Copy link
Member

nagisa commented Aug 30, 2015

It includes both the break/continue keywords as well as the label name, when only the label should be spanned:

e.g.

<anon>:1:13: 1:22 error: use of undeclared label `'a`
<anon>:1 fn main() { break 'a; }
                     ^~~~~~~~~
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

No branches or pull requests

1 participant