diff options
| author | bors <bors@rust-lang.org> | 2016-12-06 00:17:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-12-06 00:17:24 +0000 |
| commit | 09991241fd75ec69281d06c8f907d2e9f61ac5e2 (patch) | |
| tree | 9a669760f99a625b7150987db9cac4d9f9107c86 /src/rustllvm/RustWrapper.cpp | |
| parent | daf8c1dfce3b448fc581cc319f64632ec22bd0e1 (diff) | |
| parent | c735d7f2a53d6b3ecf9151e43066f8a30f42921c (diff) | |
| download | rust-09991241fd75ec69281d06c8f907d2e9f61ac5e2.tar.gz rust-09991241fd75ec69281d06c8f907d2e9f61ac5e2.zip | |
Auto merge of #38121 - jonathandturner:better_e0061, r=nikomatsakis
Point arg num mismatch errors back to their definition
This PR updates the arg num errors (like E0061) to point back at the function definition where they were defined.
Before:
```
error[E0061]: this function takes 2 parameters but 1 parameter was supplied
--> E0061.rs:18:7
|
18 | f(0);
| ^
|
= note: the following parameter types were expected:
= note: u16, &str
```
Now:
```
error[E0061]: this function takes 2 parameters but 1 parameter was supplied
--> E0061.rs:18:7
|
11 | fn f(a: u16, b: &str) {}
| ------------------------ defined here
...
18 | f(0);
| ^ expected 2 parameters
```
This is an incremental improvement. We probably want to underline only the function name and also have support for functions defined in crates outside of the current crate.
r? @nikomatsakis
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
