Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal: Migrate some assists to use the structured snippet API #14979

Merged
merged 2 commits into from Jun 9, 2023

Conversation

DropDemBits
Copy link
Contributor

Migrates the following assists:

  • add_missing_impl_members
  • extract_type_alias

As an additional requirement, these assists are also migrated to use the mutable AST API, since otherwise there would be overlapping Indel spans

`replace_derive_with_manual_impl` was slightly since it used
`add_trait_assoc_items_to_impl`
(which was also used by `add_missing_impl_members`)
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 5, 2023
@Veykril
Copy link
Member

Veykril commented Jun 9, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 9, 2023

📌 Commit dd5f055 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jun 9, 2023

⌛ Testing commit dd5f055 with merge 60d952e...

@bors
Copy link
Collaborator

bors commented Jun 9, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 60d952e to master...

@bors bors merged commit 60d952e into rust-lang:master Jun 9, 2023
10 checks passed
@DropDemBits DropDemBits deleted the structure-snippets-migrate-1 branch June 9, 2023 21:52
bors added a commit that referenced this pull request Jul 10, 2023
internal: Migrate more assists to use the structured snippet API

Continuing from #14979

Migrates the following assists:
- `generate_derive`
- `wrap_return_type_in_result`
- `generate_delegate_methods`

As a bonus, `generate_delegate_methods` now generates the function and impl block at the correct indentation 🎉.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants