]> git.lizzy.rs Git - rust.git/commitdiff
Merge #2343
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Sun, 24 Nov 2019 08:32:07 +0000 (08:32 +0000)
committerGitHub <noreply@github.com>
Sun, 24 Nov 2019 08:32:07 +0000 (08:32 +0000)
2343: implement assist invert_if r=matklad a=bravomikekilo

fix [issue 2219 invert if condition](https://github.com/rust-analyzer/rust-analyzer/issues/2219)
I put the assist cursor range to `if` of the if expression, because both condition and body will be replaced. Is there any way to replace them without cover the cursor position?
@matklad

Co-authored-by: bravomikekilo <bmk1221@126.com>

Trivial merge