diff options
| author | bors <bors@rust-lang.org> | 2017-12-14 10:08:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-12-14 10:08:48 +0000 |
| commit | 75a02a919c5109c55c652dd6671553df6452be04 (patch) | |
| tree | 96c7b30ae56f3fbc4d441145a9a5deb1fd15f116 /src/rustllvm/PassWrapper.cpp | |
| parent | 8954b16beb844fcac0cefe229e1c714a17de16e5 (diff) | |
| parent | 92da91313ce15ad3830b3dacd31bdeb8a95e5346 (diff) | |
| download | rust-75a02a919c5109c55c652dd6671553df6452be04.tar.gz rust-75a02a919c5109c55c652dd6671553df6452be04.zip | |
Auto merge of #46633 - estebank:arg-mismatch, r=arielb1
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.
Re #42855, Fix #45633.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
