mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-24 01:02:12 +00:00
internal: make::expr_match should return ast::MatchExpr
This commit is contained in:
parent
32ff06d51c
commit
551f1d00dd
5 changed files with 9 additions and 9 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue