Skip to content

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 :)

@snprajwal
Copy link
Contributor Author

Merged as a part of #19469

@snprajwal snprajwal closed this Apr 28, 2025
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