Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
petrochenkov:spanover
May 21, 2018
Merged

bors merged 1 commit into
rust-lang:masterfrom
petrochenkov:spanover

Conversation

@petrochenkov

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

r? @alexcrichton

@rust-highfive

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

@bors: r+

@bors

bors commented May 20, 2018

Copy link
Copy Markdown
Collaborator

📌 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

bors commented May 21, 2018

Copy link
Copy Markdown
Collaborator

⌛ 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

bors commented May 21, 2018

Copy link
Copy Markdown
Collaborator

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

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