Add MatchKind member to the Match expr for pretty printing & fmt

This commit is contained in:
Ross Smyth
2024-02-17 12:43:54 -05:00
parent 68a58f255a
commit 78b3bf98c3
17 changed files with 76 additions and 33 deletions

View File

@@ -181,7 +181,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
)
}),
ExprKind::TryBlock(body) => self.lower_expr_try_block(body),
ExprKind::Match(expr, arms) => hir::ExprKind::Match(
ExprKind::Match(expr, arms, _) => hir::ExprKind::Match(
self.lower_expr(expr),
self.arena.alloc_from_iter(arms.iter().map(|x| self.lower_arm(x))),
hir::MatchSource::Normal,