diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-26 17:04:09 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-26 17:04:09 +0000 |
| commit | bb1c7fc0cfe24a8477d943faa932992b9cd48957 (patch) | |
| tree | abe0c042c252b5004c6aa449cb116e8ca2907dae | |
| 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 <eduardocanellas98@gmail.com>
| -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 7875500c122..6ea0efe9fe5 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 || ctx.record_pat_syntax.is_some() || ctx.attribute_under_caret.is_some() || ctx.mod_declaration_under_caret.is_some() + || ctx.has_impl_parent + || ctx.has_trait_parent { return; } |
