internal: make::expr_match should return ast::MatchExpr

This commit is contained in:
Giga Bowser 2024-12-16 15:42:42 -05:00
parent 32ff06d51c
commit 551f1d00dd
5 changed files with 9 additions and 9 deletions

View file

@ -599,7 +599,7 @@ pub fn expr_try(expr: ast::Expr) -> ast::Expr {
pub fn expr_await(expr: ast::Expr) -> ast::Expr {
expr_from_text(&format!("{expr}.await"))
}
pub fn expr_match(expr: ast::Expr, match_arm_list: ast::MatchArmList) -> ast::Expr {
pub fn expr_match(expr: ast::Expr, match_arm_list: ast::MatchArmList) -> ast::MatchExpr {
expr_from_text(&format!("match {expr} {match_arm_list}"))
}
pub fn expr_if(