diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-26 18:04:09 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-26 18:04:09 +0100 |
commit | bb1c7fc0cfe24a8477d943faa932992b9cd48957 (patch) | |
tree | abe0c042c252b5004c6aa449cb116e8ca2907dae /crates | |
parent | f3aaae65553550cc9b7101a844ecbc3d426a1bef (diff) | |
parent | ce367460354deae07550f839c612dc8c8bf13930 (diff) |
Merge #9008
9008: fix: remove undesired completions from trait/impl blocks r=Veykril a=eduardocanellas
Related to #8518
Co-authored-by: Eduardo Canellas <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ide_completion/src/completions/unqualified_path.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ide_completion/src/completions/unqualified_path.rs b/crates/ide_completion/src/completions/unqualified_path.rs index 7875500c1..6ea0efe9f 100644 --- a/crates/ide_completion/src/completions/unqualified_path.rs +++ b/crates/ide_completion/src/completions/unqualified_path.rs | |||
@@ -13,6 +13,8 @@ pub(crate) fn complete_unqualified_path(acc: &mut Completions, ctx: &CompletionC | |||
13 | || ctx.record_pat_syntax.is_some() | 13 | || ctx.record_pat_syntax.is_some() |
14 | || ctx.attribute_under_caret.is_some() | 14 | || ctx.attribute_under_caret.is_some() |
15 | || ctx.mod_declaration_under_caret.is_some() | 15 | || ctx.mod_declaration_under_caret.is_some() |
16 | || ctx.has_impl_parent | ||
17 | || ctx.has_trait_parent | ||
16 | { | 18 | { |
17 | return; | 19 | return; |
18 | } | 20 | } |