diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-09 16:34:43 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-09 16:34:43 +0100 |
commit | 89c7c559953f103f224caacad6c9497d36660c76 (patch) | |
tree | fff7cbf2b489053af801e075c51288d7d7d6afca /crates/ra_hir_ty/Cargo.toml | |
parent | f1d084fbd9504497aed24b907b03247bfcd31675 (diff) | |
parent | f4a9d9a00f0462bce92ddbac24cb91825c8ab192 (diff) |
Merge #5270
5270: Add argument count mismatch diagnostic r=matklad a=jonas-schievink
Closes https://github.com/rust-analyzer/rust-analyzer/issues/4025.
This currently has one false positive on this line, where `max` is resolved to `Iterator::max` instead of `Ord::max`:
https://github.com/rust-analyzer/rust-analyzer/blob/8aa10c00a4c5b957d459fac5a103cd9688e8dcdd/crates/expect/src/lib.rs#L263
(I have no idea why it thinks that `usize` is an `Iterator`)
TODO:
* [x] Tests
* [x] Improve diagnostic text for method calls
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/ra_hir_ty/Cargo.toml')
-rw-r--r-- | crates/ra_hir_ty/Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir_ty/Cargo.toml b/crates/ra_hir_ty/Cargo.toml index d6df48db2..ce257dc0b 100644 --- a/crates/ra_hir_ty/Cargo.toml +++ b/crates/ra_hir_ty/Cargo.toml | |||
@@ -32,3 +32,4 @@ chalk-ir = { version = "0.15.0" } | |||
32 | 32 | ||
33 | [dev-dependencies] | 33 | [dev-dependencies] |
34 | insta = "0.16.0" | 34 | insta = "0.16.0" |
35 | expect = { path = "../expect" } | ||