-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Incorrect spans generated for top-level attributes #36530
Comments
You can also easily see the effects by looking at the highlighting of the errors in #[foo]
mod foo {
#![foo]
} |
Hi, I'll try fix it today or tomorrow 2016-09-16 13:20 GMT+03:00 Tim Neumann notifications@github.com:
|
fix top level attr spans issue rust-lang#36530 ?r @jonathandturner
fix top level attr spans issue rust-lang#36530 ?r @jonathandturner
fix top level attr spans issue rust-lang#36530 ?r @jonathandturner
fix top level attr spans issue rust-lang#36530 ?r @jonathandturner
The test for this issue is failing in the nightly builds - https://buildbot.rust-lang.org/builders/nightly-dist-rustc-linux/builds/659/steps/distcheck/logs/stdio |
@thepowersgang: There's already a potential fix: #36678 |
(By the way, I'm gonna close this, since the PR fixing this has been merged). |
@mikhail-m1
Pull request #36354 broke the spans for top-level attributes.
Self-contained example (that used to work):
Now I get:
So the generated spans are one byte too short.
Meta
The text was updated successfully, but these errors were encountered: