Skip to content

Migrate assists to SyntaxFactory with_mappings#21905

Draft
ogunbor wants to merge 2 commits intorust-lang:masterfrom
ogunbor:migrate-replace-named-generic-with-impl
Draft

Migrate assists to SyntaxFactory with_mappings#21905
ogunbor wants to merge 2 commits intorust-lang:masterfrom
ogunbor:migrate-replace-named-generic-with-impl

Conversation

@ogunbor
Copy link
Copy Markdown

@ogunbor ogunbor commented Mar 29, 2026

Migrates the following assists from SyntaxFactory::without_mappings()
to SyntaxFactory::with_mappings(), adding the required
editor.add_mappings(make.finish_with_mappings()) call before
each add_file_edits.

  • replace_named_generic_with_impl
  • extract_type_alias
  • generate_default_from_new
  • generate_fn_type_alias

Part of #18285

ogunbor added 2 commits March 29, 2026 01:23
- replace_named_generic_with_impl
- extract_type_alias
- generate_default_from_new
- generate_fn_type_alias

Part of rust-lang#18285
@ogunbor ogunbor changed the title Migrate assists to SyntaxFactory with_mappingsMigrate replace named generic with impl Migrating rust-analyzer assists to SyntaxEditor Mar 29, 2026
@ogunbor ogunbor changed the title Migrating rust-analyzer assists to SyntaxEditor Migrate assists to SyntaxFactory with_mappings Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant