mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-04 10:50:15 +00:00
Add expression fill mode variant for filling with underscore expressions
This commit is contained in:
parent
8fb2dcc947
commit
7e526b6be7
31 changed files with 172 additions and 125 deletions
|
@ -69,6 +69,9 @@ pub mod ext {
|
|||
pub fn expr_todo() -> ast::Expr {
|
||||
expr_from_text("todo!()")
|
||||
}
|
||||
pub fn expr_underscore() -> ast::Expr {
|
||||
expr_from_text("_")
|
||||
}
|
||||
pub fn expr_ty_default(ty: &ast::Type) -> ast::Expr {
|
||||
expr_from_text(&format!("{ty}::default()"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue