Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/item_list/trait_impl.rs')
| -rw-r--r-- | crates/ide-completion/src/completions/item_list/trait_impl.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crates/ide-completion/src/completions/item_list/trait_impl.rs b/crates/ide-completion/src/completions/item_list/trait_impl.rs index 56f656f479..846d5f0902 100644 --- a/crates/ide-completion/src/completions/item_list/trait_impl.rs +++ b/crates/ide-completion/src/completions/item_list/trait_impl.rs @@ -44,8 +44,8 @@ use text_edit::TextEdit; use crate::{ context::{ - IdentContext, ItemListKind, NameContext, NameKind, NameRefContext, PathCompletionCtx, - PathKind, + IdentContext, ItemListKind, NameContext, NameKind, NameRefContext, NameRefKind, + PathCompletionCtx, PathKind, }, CompletionContext, CompletionItem, CompletionItemKind, CompletionRelevance, Completions, }; @@ -106,14 +106,13 @@ fn completion_match(ctx: &CompletionContext) -> Option<(ImplCompletionKind, Text } IdentContext::NameRef(NameRefContext { nameref, - path_ctx: - Some( + kind: + Some(NameRefKind::Path( path_ctx @ PathCompletionCtx { kind: PathKind::Item { kind: ItemListKind::TraitImpl }, .. }, - ), - .. + )), }) if path_ctx.is_trivial_path() => Some(( ImplCompletionKind::All, match nameref { |