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

lexer: Fix span override for the first token in a string #50924

Merged
merged 1 commit into from
May 21, 2018

Conversation

petrochenkov
Copy link
Contributor

Previously due to peculiarities of StringReader construction something like "a b c d".parse::<TokenStream>() gave you one non-overridden span for a and then three correctly overridden spans for b, c and d.
Now all the spans are overridden.

@petrochenkov
Copy link
Contributor Author

r? @alexcrichton

@rust-highfive
Copy link
Collaborator

r? @pnkfelix

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 20, 2018
@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented May 20, 2018

📌 Commit b4714cd has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 20, 2018
@bors
Copy link
Contributor

bors commented May 21, 2018

⌛ Testing commit b4714cd with merge ba1363f...

bors added a commit that referenced this pull request May 21, 2018
lexer: Fix span override for the first token in a string

Previously due to peculiarities of `StringReader` construction something like `"a b c d".parse::<TokenStream>()` gave you one non-overridden span for `a` and then three correctly overridden spans for `b`, `c` and `d`.
Now all the spans are overridden.
@bors
Copy link
Contributor

bors commented May 21, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing ba1363f to master...

@bors bors merged commit b4714cd into rust-lang:master May 21, 2018
@petrochenkov petrochenkov deleted the spanover branch June 5, 2019 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants