about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-10-16 02:10:22 +0200
committerGitHub <noreply@github.com>2020-10-16 02:10:22 +0200
commit9d8bf44409b5892525264f0b67179fa42e57c2f0 (patch)
treed234dac2207ca9631ed85875dff961611a3fc761 /compiler/rustc_mir/src/transform/coverage/debug.rs
parent71b0ea62354686553d180ad6f192c234c97501f2 (diff)
parent4e82da4a48d4cf86521608c6f1cf137a5765910b (diff)
downloadrust-9d8bf44409b5892525264f0b67179fa42e57c2f0.tar.gz
rust-9d8bf44409b5892525264f0b67179fa42e57c2f0.zip
Rollup merge of #77780 - calebcartwright:cast-expr-attr-span, r=oli-obk
rustc_parse: fix spans on cast and range exprs with attrs

Currently the span for cast and range expressions does not include the span of attributes associated to the lhs which is causing some issues for us in rustfmt.

```rust
fn foo() -> i64 {
    #[attr]
    1u64 as i64
}

fn bar() -> Range<i32> {
    #[attr]
    1..2
}
```

This corrects the span for cast and range expressions to fully include the span of child nodes
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions