mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
internal: make::expr_prefix should return ast::PrefixExpr
This commit is contained in:
parent
159731022f
commit
913d197a04
7 changed files with 8 additions and 8 deletions
|
|
@ -623,7 +623,7 @@ pub fn expr_loop(block: ast::BlockExpr) -> ast::Expr {
|
|||
expr_from_text(&format!("loop {block}"))
|
||||
}
|
||||
|
||||
pub fn expr_prefix(op: SyntaxKind, expr: ast::Expr) -> ast::Expr {
|
||||
pub fn expr_prefix(op: SyntaxKind, expr: ast::Expr) -> ast::PrefixExpr {
|
||||
let token = token(op);
|
||||
expr_from_text(&format!("{token}{expr}"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue