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 variable assist for subexpression in mutable borrow #12788

Merged
merged 1 commit into from Jul 18, 2022

Conversation

hasali19
Copy link
Contributor

This checks if the expression is in a mutable borrow and if so makes the extracted variable mut.

Closes #12786

@hasali19 hasali19 marked this pull request as draft July 17, 2022 20:53
@hasali19 hasali19 marked this pull request as ready for review July 17, 2022 21:43
@jonas-schievink
Copy link
Contributor

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 18, 2022

📌 Commit ea19e70 has been approved by jonas-schievink

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jul 18, 2022

⌛ Testing commit ea19e70 with merge e2eaa99...

@bors
Copy link
Collaborator

bors commented Jul 18, 2022

☀️ Test successful - checks-actions
Approved by: jonas-schievink
Pushing e2eaa99 to master...

@bors bors merged commit e2eaa99 into rust-lang:master Jul 18, 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.

Extract variable assist should make variable mut if necessary
3 participants