diff options
author | Lukas Wirth <[email protected]> | 2020-12-23 00:26:31 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-12-23 00:26:31 +0000 |
commit | be7260485e31eb24a9fa7bb3d6b587ab59bd6846 (patch) | |
tree | 6ebda39cc0aaed9bb2008c2cf68b7adaf549d395 /crates/hir_def/src/body | |
parent | 4a2f60cb7b83e9ef95d97201d210ff6943b660eb (diff) |
Update ungrammar for const block patterns
Diffstat (limited to 'crates/hir_def/src/body')
-rw-r--r-- | crates/hir_def/src/body/lower.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/hir_def/src/body/lower.rs b/crates/hir_def/src/body/lower.rs index 0f404be1b..978c3a324 100644 --- a/crates/hir_def/src/body/lower.rs +++ b/crates/hir_def/src/body/lower.rs | |||
@@ -933,7 +933,9 @@ impl ExprCollector<'_> { | |||
933 | Pat::Box { inner } | 933 | Pat::Box { inner } |
934 | } | 934 | } |
935 | // FIXME: implement | 935 | // FIXME: implement |
936 | ast::Pat::RangePat(_) | ast::Pat::MacroPat(_) => Pat::Missing, | 936 | ast::Pat::RangePat(_) | ast::Pat::MacroPat(_) | ast::Pat::ConstBlockPat(_) => { |
937 | Pat::Missing | ||
938 | } | ||
937 | }; | 939 | }; |
938 | let ptr = AstPtr::new(&pat); | 940 | let ptr = AstPtr::new(&pat); |
939 | self.alloc_pat(pattern, Either::Left(ptr)) | 941 | self.alloc_pat(pattern, Either::Left(ptr)) |