1
Fork 0

add guard patterns to HIR and implement lowering

This commit is contained in:
Max Niederman 2024-08-24 21:56:12 -07:00
parent d117b7f211
commit b579c36224
11 changed files with 40 additions and 7 deletions

View file

@ -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),
};