aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/traits
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-10-22 21:46:24 +0100
committerGitHub <[email protected]>2020-10-22 21:46:24 +0100
commit8b3c851dd37f39f79e7e8807378f45fdde7f6411 (patch)
treed6c20cd94e6291d6e4c3b8f58a17817d61463d79 /crates/hir_ty/src/traits
parentedf46a13a6a28093985d2d934ef97570947b9494 (diff)
parent3dbbcfca67ed09322227f2190b5364754a29a216 (diff)
Merge #6098
6098: Insert ref for completions r=adamrk a=adamrk Follow up to https://github.com/rust-analyzer/rust-analyzer/pull/5846. When we have a local in scope which needs a ref or mutable ref to match the name and type of the active in the completion context then a new completion item with `&` or `&mut ` is inserted. E.g. ```rust fn foo(arg: &i32){}; fn main() { let arg = 1_i32; foo(a<|>) } ``` now offers `&arg` as a completion option with the highest score. Co-authored-by: adamrk <[email protected]>
Diffstat (limited to 'crates/hir_ty/src/traits')
0 files changed, 0 insertions, 0 deletions