about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-02-06 00:29:02 +0900
committerGitHub <noreply@github.com>2019-02-06 00:29:02 +0900
commit757c4407db9d33f0a8bf03a53bbfc5df55154ae3 (patch)
tree46111f76de8ce4a8848299dd1e5b511cf7d627c1 /src/rustllvm/RustWrapper.cpp
parent3f731d56b61838c3782b026b173521f9a08e0cbd (diff)
parent9851a296885cc745eccbc33858915d08e839eadc (diff)
downloadrust-757c4407db9d33f0a8bf03a53bbfc5df55154ae3.tar.gz
rust-757c4407db9d33f0a8bf03a53bbfc5df55154ae3.zip
Rollup merge of #58116 - topecongiro:wrong-span-assignment, 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 https://github.com/rust-lang/rustfmt/issues/3313, https://github.com/rust-lang/rust/issues/15701.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions