aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src
diff options
context:
space:
mode:
authorGeoffrey Copin <[email protected]>2020-04-11 16:04:25 +0100
committerGeoffrey Copin <[email protected]>2020-04-11 18:30:41 +0100
commit270bcfdfc226bcdfffd7b8aa903073929fcef5f2 (patch)
tree3d26bc3e2bcf02add4d86916121d1837bc3d9525 /crates/ra_hir_def/src
parent21443f1b4839872841d8f32e87209f2106d43ad8 (diff)
Avoid adding a RecordFieldPat variant to the Pat enum
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r--crates/ra_hir_def/src/body/lower.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs
index 80492b733..e1b08d48f 100644
--- a/crates/ra_hir_def/src/body/lower.rs
+++ b/crates/ra_hir_def/src/body/lower.rs
@@ -691,8 +691,6 @@ impl ExprCollector<'_> {
691 } 691 }
692 // FIXME: implement 692 // FIXME: implement
693 ast::Pat::BoxPat(_) | ast::Pat::RangePat(_) | ast::Pat::MacroPat(_) => Pat::Missing, 693 ast::Pat::BoxPat(_) | ast::Pat::RangePat(_) | ast::Pat::MacroPat(_) => Pat::Missing,
694 // FIXME: implement
695 ast::Pat::RecordFieldPat(_) => Pat::Missing,
696 }; 694 };
697 let ptr = AstPtr::new(&pat); 695 let ptr = AstPtr::new(&pat);
698 self.alloc_pat(pattern, Either::Left(ptr)) 696 self.alloc_pat(pattern, Either::Left(ptr))