]> git.lizzy.rs Git - rust.git/commit
Auto merge of #12788 - hasali19:extract-var-mut, r=jonas-schievink
authorbors <bors@rust-lang.org>
Mon, 18 Jul 2022 12:42:05 +0000 (12:42 +0000)
committerbors <bors@rust-lang.org>
Mon, 18 Jul 2022 12:42:05 +0000 (12:42 +0000)
commite2eaa99ca10aaa388bbe8b392f0029c6177cd010
treee12f96a61f4da59732437fe0bb0b8ef25bce0296
parentee2d5fed30ecbe0123c2c2f0aab328b6d609a294
parentea19e703049f60008f1f5ea4c79ac5b0b4bcc986
Auto merge of #12788 - hasali19:extract-var-mut, r=jonas-schievink

Fix extract variable assist for subexpression in mutable borrow

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

Closes #12786