Merge pull request #19704 from Veykril/push-wrvznvvpvtvp

Add expression fill mode variant for filling with underscore expressions
This commit is contained in:
Lukas Wirth 2025-04-28 09:45:04 +00:00 committed by GitHub
commit 0fee71065b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 172 additions and 125 deletions

View file

@ -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()"))
}