-
Notifications
You must be signed in to change notification settings - Fork 913
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
Expression attribute duplication #3313
Comments
The problem is that the span of assignment ( |
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Feb 5, 2019
…r=petrochenkov Include the span of attributes of the lhs to the span of the assignment expression This PR adds the span of attributes of the lhs to the span of the assignment expression. Currently with the following code, `#[attr]` is not included to the span of the assignment (`foo = true`). ```rust #[attr] foo = true; ``` The rational behind this change is that as libsyntax user I expect the span of the parent node includes every span of child nodes. cc rust-lang/rustfmt#3313, rust-lang#15701.
topecongiro
added a commit
to topecongiro/rustfmt
that referenced
this issue
Feb 6, 2019
topecongiro
added a commit
to topecongiro/rustfmt
that referenced
this issue
Feb 10, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
input
Playground
output
The text was updated successfully, but these errors were encountered: