diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-12-10 11:12:17 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-12-10 13:37:12 -0800 |
| commit | 8ee82d08ac17945a770748c9943ebacc604be935 (patch) | |
| tree | c16ff5d8b4c37b273a3beb8a8b9763322ee9a2e3 /src/rustllvm/PassWrapper.cpp | |
| parent | 6537fd184eff31220eda42712a13f48684e8463a (diff) | |
| download | rust-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
