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

refactor: migrate unmerge_use -> unmerge_imports to syntax editor #19465

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

snprajwal
Copy link
Contributor

@snprajwal snprajwal commented Mar 27, 2025

Also ensures that attributes on the use item are applied to the new use item when unmerging.

Fixes #19441, contributes to #18285, and supersedes #18565. This patch also includes some changes from #18484, specifically the addition of the Removable trait.

cc @darichey, thanks for all the reviews on the other PR :) made things much easier for me

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 27, 2025
@snprajwal snprajwal force-pushed the unmerge-use-attrs branch 4 times, most recently from 3d57e5e to 1a6fe9f Compare March 28, 2025 09:01
Also ensures that attributes on the use item are applied to the new use
item when unmerging.

Signed-off-by: Prajwal S N <[email protected]>
@snprajwal
Copy link
Contributor Author

This is just me nitpicking, but would it make more sense to rename this assist to unmerge_imports, given that it has a sister assist called merge_imports?

@Veykril
Copy link
Member

Veykril commented Mar 28, 2025

Those should have matching names for sure I agree

@snprajwal snprajwal changed the title fix: migrate unmerge_use to syntax editor fix: migrate unmerge_use -> unmerge_imports to syntax editor Mar 28, 2025
@snprajwal snprajwal changed the title fix: migrate unmerge_use -> unmerge_imports to syntax editor refactor: migrate unmerge_use -> unmerge_imports to syntax editor Mar 28, 2025
@snprajwal
Copy link
Contributor Author

Gentle ping on this and #19469 :)

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.

Unmerge use assist ignores attributes
3 participants