about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2017-12-10 11:12:17 -0800
committerEsteban Küber <esteban@kuber.com.ar>2017-12-10 13:37:12 -0800
commit8ee82d08ac17945a770748c9943ebacc604be935 (patch)
treec16ff5d8b4c37b273a3beb8a8b9763322ee9a2e3 /src/rustllvm/PassWrapper.cpp
parent6537fd184eff31220eda42712a13f48684e8463a (diff)
downloadrust-8ee82d08ac17945a770748c9943ebacc604be935.tar.gz
rust-8ee82d08ac17945a770748c9943ebacc604be935.zip
Point at whole method call instead of args
To avoid confusion in cases where the code is

```rust
fn foo() {}
/ foo(
|     bar()
|     ^^^ current diagnostics point here for arg count mismatch
| );
|_^ new diagnostic span points here
```

as this leads to confusion making people think that the diagnostic is
talking about `bar`'s arg count, not `foo`'s.

Point at `fn`s definition on arg mismatch, just like we do for closures.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions