Skip to content

Bad span for range #27162

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

Closed
marcusklaas opened this issue Jul 20, 2015 · 0 comments
Closed

Bad span for range #27162

marcusklaas opened this issue Jul 20, 2015 · 0 comments
Labels
A-parser Area: The lexing & parsing of Rust source code to an AST T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@marcusklaas
Copy link
Contributor

The span for the range in

for _ in 0..10 { ... }

is 0..10 {, whereas it should be just 0..10.

@jroesch jroesch added A-parser Area: The lexing & parsing of Rust source code to an AST T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 21, 2015
bors added a commit that referenced this issue Jul 23, 2015
Right trims the span for certain range expressions.

Closes #27162.
bors added a commit that referenced this issue Jul 23, 2015
Right trims the span for certain range expressions.

Closes #27162.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parser Area: The lexing & parsing of Rust source code to an AST T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants