Merge pull request #18855 from Giga-Bowser/migrate-if-let

internal: Migrate `if let` replacement assists to `SyntaxEditor`
This commit is contained in:
Lukas Wirth 2025-01-08 08:59:42 +00:00 committed by GitHub
commit 1e975d6ee4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 433 additions and 154 deletions

View file

@ -303,7 +303,7 @@ fn include_references(initial_element: &ast::Expr) -> (ast::Expr, ast::Expr) {
resulting_element = ast::Expr::from(parent_deref_element);
new_element_opt = make::expr_prefix(syntax::T![*], new_element_opt);
new_element_opt = make::expr_prefix(syntax::T![*], new_element_opt).into();
}
if let Some(first_ref_expr) = resulting_element.syntax().parent().and_then(ast::RefExpr::cast) {