-
Notifications
You must be signed in to change notification settings - Fork 1.9k
assists: turn while into loop #10257
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
Conversation
6b36b5a to
72306e1
Compare
|
Regarding naming, I'm not sure either we probably should revisit the assist names at some point to make some more consistent. So using convert as a name is fine for now. Also once you are done you'll want to run |
72306e1 to
b8299f8
Compare
b8299f8 to
0ef1b4e
Compare
0ef1b4e to
11a56f8
Compare
|
Oops, I should have made another commit instead of a force push, I hope you don't mind |
|
No problem force pushes are fine here since the commit wasnt that big anyways |
|
changelog feat (first contribution) add "Convert |

Implements an assist to turn a
whileloop into alooploop, as requested in #10214.I'm not sure sure what the guidelines are regarding naming assists convert_x_to_y vs replace_x_with_y.
This is my first commit to rust-analyzer :D Thank you @matklad for your awesome Explaining rust-analyzer series <3
Closes #10214