diff options
author | Josh Mcguigan <[email protected]> | 2020-04-09 04:23:51 +0100 |
---|---|---|
committer | Josh Mcguigan <[email protected]> | 2020-04-10 14:35:52 +0100 |
commit | e63315b8f189396cf556f21d4ca27ae4281d17d7 (patch) | |
tree | 48d6f6bae33a58d378939f766a1725c73bac7f2e /crates/ra_hir_def/src/body/lower.rs | |
parent | 176f7f61175bc433c56083a758bd7a28a8ae31f8 (diff) |
add record pat missing field diagnostic
Diffstat (limited to 'crates/ra_hir_def/src/body/lower.rs')
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index b0d71eb3d..0855c1d3a 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -668,7 +668,9 @@ impl ExprCollector<'_> { | |||
668 | }); | 668 | }); |
669 | fields.extend(iter); | 669 | fields.extend(iter); |
670 | 670 | ||
671 | Pat::Record { path, args: fields } | 671 | let ellipsis = record_field_pat_list.dotdot_token().is_some(); |
672 | |||
673 | Pat::Record { path, args: fields, ellipsis } | ||
672 | } | 674 | } |
673 | ast::Pat::SlicePat(p) => { | 675 | ast::Pat::SlicePat(p) => { |
674 | let SlicePatComponents { prefix, slice, suffix } = p.components(); | 676 | let SlicePatComponents { prefix, slice, suffix } = p.components(); |