-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Bad span for self type #27522
Comments
It's seems to be caused by this `hack': https://github.com/rust-lang/rust/blob/master/src/libsyntax/ast.rs#L1503-L1521. (Called here: https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/parser.rs#L4321-L4323) Weirdly enough, the proper span is shown for diagnostics: play.rust-lang.org Any pointers, @eddyb? |
Since |
This has been fixed. Can this ticket be closed? |
…nkov Add test for correct span for type Adds test for and closes rust-lang#27522.
…nkov Add test for correct span for type Adds test for and closes rust-lang#27522.
The high end of the span of
&SomeType
inis incorrectly set to
BytePos(0)
.The text was updated successfully, but these errors were encountered: