-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Bad span for self type #27522
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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: