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 assists to the structured snippet API, part 5 #16082

Merged
merged 4 commits into from
Jan 2, 2024

Conversation

DropDemBits
Copy link
Contributor

Continuing from #15874

Migrates the following assists:

  • extract_variable
  • generate_function
  • replace_is_some_with_if_let_some
  • replace_is_ok_with_if_let_ok

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 11, 2023
The weird disjoint `Indel`s are likely an artifact of the tree diffing
algorithm we use.
@Veykril
Copy link
Member

Veykril commented Jan 2, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Jan 2, 2024

📌 Commit 1506435 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jan 2, 2024

⌛ Testing commit 1506435 with merge 792c946...

@bors
Copy link
Contributor

bors commented Jan 2, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 792c946 to master...

@bors bors merged commit 792c946 into rust-lang:master Jan 2, 2024
10 checks passed
@DropDemBits DropDemBits deleted the structured-snippet-migrate-5 branch January 3, 2024 04:36
bors added a commit that referenced this pull request Feb 8, 2024
…ykril

internal: Migrate assists to the structured snippet API, part 6/7

Continuing from #16082

Migrates the following assists:

- `extract_function`
- `generate_getter_or_setter`
- `generate_impl`
- `generate_new`
- `replace_derive_with_manual_impl`

Would've been the final PR in the structured snippet migration series, but I didn't notice that `generate_trait_from_impl` started to use `{insert,replace}_snippet` when I first started the migration 😅. This appears to be a pretty self-contained change, so I'll leave that for a separate future PR.

This also removes the last usages of `render_snippet`, which was a follow up goal of #11638. 🎉
bors added a commit that referenced this pull request Feb 9, 2024
…opDemBits

internal: Migrate assists to the structured snippet API, part 6/7

Continuing from #16082

Migrates the following assists:

- `extract_function`
- `generate_getter_or_setter`
- `generate_impl`
- `generate_new`
- `replace_derive_with_manual_impl`

Would've been the final PR in the structured snippet migration series, but I didn't notice that `generate_trait_from_impl` started to use `{insert,replace}_snippet` when I first started the migration 😅. This appears to be a pretty self-contained change, so I'll leave that for a separate future PR.

This also removes the last usages of `render_snippet`, which was a follow up goal of #11638. 🎉
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.

4 participants