]> git.lizzy.rs Git - rust.git/commit
Auto merge of #12554 - XFFXFF:fix_11959, r=Veykril
authorbors <bors@rust-lang.org>
Thu, 16 Jun 2022 12:48:33 +0000 (12:48 +0000)
committerbors <bors@rust-lang.org>
Thu, 16 Jun 2022 12:48:33 +0000 (12:48 +0000)
commit7322a982f99e41cc2a025d1ae3b11a5acd4a771e
tree0f539d4e6cf6a46d5edcbdd296d4c505aa2795f2
parent7ade4d49fc59ec939294897890375a8b86c743e2
parent6df969f5f4e9dffd19024962e051e6f9f94e9805
Auto merge of #12554 - XFFXFF:fix_11959, r=Veykril

fix: local items should not be completed in parent signature

fixes #11959

> We get a Bar completion for the following snippet which is wrong as the item is not visible in that position.
> ``` rust
> fn foo() -> $0 {
>    struct Bar;
> }
> ```

I investigated the problem and found that the scope of the cursor offset, also `CompletionContext.scope` is the body of the function