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

Give unmerge_use a label explaining what it will affect. #15621

Merged
merged 1 commit into from Sep 20, 2023

Conversation

kpreid
Copy link
Contributor

@kpreid kpreid commented Sep 16, 2023

When I'm trying to clean up uses, I often feel uncertain about what exactly the effects of choosing an assist will be. This PR makes a small improvement to that by giving “Unmerge use” a label which names the root of the tree that it's going to move, when one exists.

There is no test because I didn't see, among the test helpers, a way to assert on the assist label (as opposed to filtering on it). However, I did test the change manually.

I looked into making a similar change to “Merge imports”, but that is considerably trickier.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 16, 2023
@Veykril
Copy link
Member

Veykril commented Sep 20, 2023

The merge one works quite a bit differently indeed. Maybe we can just state there if we are merging the one the cursor is on with the one below. As in Merge import with the following one or something clearer.

@Veykril
Copy link
Member

Veykril commented Sep 20, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 20, 2023

📌 Commit cac796a has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 20, 2023

⌛ Testing commit cac796a with merge d6fef2c...

@bors
Copy link
Collaborator

bors commented Sep 20, 2023

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

@bors bors merged commit d6fef2c into rust-lang:master Sep 20, 2023
10 checks passed
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