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

feat: Add unqualify_method_call assist #13825

Merged
merged 2 commits into from
Jan 9, 2023

Conversation

WaffleLapkin
Copy link
Member

...which is the inverse of qualify_method_call assist.

Peek 2022-12-22 22-47

Optional future work:

  • import the trait if needed
  • remove excess references when auto-ref is possible

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 22, 2022
@flodiebold
Copy link
Member

I think the acronym "UFCS" is a bit unfriendly, maybe something like "Convert to .add method call"? (Also btw, why is "Qualify method call" under "Inline"?)

@Veykril
Copy link
Member

Veykril commented Jan 2, 2023

+1 to UFCS being a bad choice for the user visible text

Also btw, why is "Qualify method call" under "Inline"?

Probably because both target the same range and our assists are ordered alphabetically by default (with a few exceptions, where this would probably be a good choice to do so as well)

@flodiebold
Copy link
Member

Probably because both target the same range and our assists are ordered alphabetically by default (with a few exceptions, where this would probably be a good choice to do so as well)

I didn't mean the order, rather that it's under the Inline... group (whereas the new assist is Rewrite...) 😅

@rust-cloud-vms rust-cloud-vms bot force-pushed the ufcs_to_method_call_and_back branch from 59889c1 to 44c84a8 Compare January 9, 2023 13:50
@WaffleLapkin WaffleLapkin changed the title feat: Add convert_ufcs_to_method assist feat: Add unqualify_method_call assist Jan 9, 2023
@Veykril
Copy link
Member

Veykril commented Jan 9, 2023

@bors delegate+

@bors
Copy link
Contributor

bors commented Jan 9, 2023

✌️ @WaffleLapkin can now approve this pull request

@rust-cloud-vms rust-cloud-vms bot force-pushed the ufcs_to_method_call_and_back branch from a48d5f5 to c782353 Compare January 9, 2023 14:24
@WaffleLapkin
Copy link
Member Author

@bors r=Veykril

@bors
Copy link
Contributor

bors commented Jan 9, 2023

📌 Commit c782353 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jan 9, 2023

⌛ Testing commit c782353 with merge d33fa38...

@bors
Copy link
Contributor

bors commented Jan 9, 2023

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

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.

5 participants