mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-21 15:51:46 +00:00
Merge pull request #19704 from Veykril/push-wrvznvvpvtvp
Add expression fill mode variant for filling with underscore expressions
This commit is contained in:
commit
0fee71065b
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