-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Wrong span when parse TypeTuple
with more than two elements
#959
Comments
Thanks, I've published a fix in 1.0.59. |
This was referenced Mar 8, 2021
This was referenced Mar 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when parsing the string
text
:the result of
to_token_stream()
:and
TokenStream::from_str(text)
are not the same.
Specifically, except for the first comma, the results of
.span()
on the remaining commas are the same.All results of
span.start()
andspan.end()
areLineColumn { line: 1, column: 0 }
This may cause misunderstandings to those who think that
.to_token_stream()
is equivalent toTokenStream::from_str(text)
playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=5161bd64cbd54d283bcf04b47cec8343
The text was updated successfully, but these errors were encountered: