]> git.lizzy.rs Git - rust.git/commit
allow modifications of vars from outer scope inside extracted function
authorVladyslav Katasonov <cpud47@gmail.com>
Wed, 3 Feb 2021 20:45:03 +0000 (23:45 +0300)
committerVladyslav Katasonov <cpud47@gmail.com>
Wed, 3 Feb 2021 20:45:03 +0000 (23:45 +0300)
commitf102616aaea2894508f8f078cfb20ceef5411d12
treefe2f951fd8fe9d3ed9aa7e92db9f467a8bb7fc66
parent82787febdee3e7dfe5a96c94aee03cd726f642f9
allow modifications of vars from outer scope inside extracted function

It currently allows only directly setting variable.
No `&mut` references or methods.
crates/assists/src/handlers/extract_function.rs
crates/syntax/src/ast/make.rs