From: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Sun, 24 Nov 2019 08:32:07 +0000 (+0000) Subject: Merge #2343 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=7b6aa7c34e5650506924decfee0a77aa9bb0a480;p=rust.git Merge #2343 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 --- 7b6aa7c34e5650506924decfee0a77aa9bb0a480