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

fix: extract_module selection inside impl #11662

Merged
merged 1 commit into from
Mar 10, 2022
Merged

fix: extract_module selection inside impl #11662

merged 1 commit into from
Mar 10, 2022

Conversation

feniljain
Copy link
Contributor

@feniljain feniljain commented Mar 8, 2022

Should close: #11508

From issue:
Concern 1: Seems to be fixed in latest rust-analyzer build
Concern 2 and 3: Should be fixed by this PR
Concern 4: Got fixed in #11472

Points to note:

  • Here I have seperated use items and other items, this is becuase the new impl block which we will be creating cannot contain use items as immediate children. As they are the only one item that can be generated by our assist, so seperating them helps in handling their inclusion in new impl block inside new module

  • There's also a new method added which helps in removing remaning left over indentation after removing impl or other item

@Veykril
Copy link
Member

Veykril commented Mar 10, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 10, 2022

@bors bors bot merged commit a7d440e into rust-lang:master Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extracting a inherent impl method to a module works poorly.
2 participants