add guard patterns to HIR and implement lowering
This commit is contained in:
parent
d117b7f211
commit
b579c36224
11 changed files with 40 additions and 7 deletions
|
@ -435,6 +435,9 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> {
|
|||
|
||||
hir::PatKind::Or(pats) => PatKind::Or { pats: self.lower_patterns(pats) },
|
||||
|
||||
// FIXME(guard_patterns): implement guard pattern lowering
|
||||
hir::PatKind::Guard(pat, _) => self.lower_pattern(pat).kind,
|
||||
|
||||
hir::PatKind::Err(guar) => PatKind::Error(guar),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue