diff options
Diffstat (limited to 'crates/ra_ide/src/completion')
-rw-r--r-- | crates/ra_ide/src/completion/complete_trait_impl.rs (renamed from crates/ra_ide/src/completion/complete_impl_fn.rs) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/completion/complete_impl_fn.rs b/crates/ra_ide/src/completion/complete_trait_impl.rs index 6d464cc1f..3bec57426 100644 --- a/crates/ra_ide/src/completion/complete_impl_fn.rs +++ b/crates/ra_ide/src/completion/complete_trait_impl.rs | |||
@@ -5,7 +5,7 @@ use hir::{ self, db::HirDatabase, HasSource }; | |||
5 | 5 | ||
6 | use ra_syntax::{ ast, ast::AstNode }; | 6 | use ra_syntax::{ ast, ast::AstNode }; |
7 | 7 | ||
8 | pub(crate) fn complete_impl_fn(acc: &mut Completions, ctx: &CompletionContext) { | 8 | pub(crate) fn complete_trait_impl(acc: &mut Completions, ctx: &CompletionContext) { |
9 | let impl_trait = ast::ItemList::cast(ctx.token.parent()) | 9 | let impl_trait = ast::ItemList::cast(ctx.token.parent()) |
10 | .and_then(|item_list| item_list.syntax().parent()) | 10 | .and_then(|item_list| item_list.syntax().parent()) |
11 | .and_then(|item_list_parent| ast::ImplBlock::cast(item_list_parent)) | 11 | .and_then(|item_list_parent| ast::ImplBlock::cast(item_list_parent)) |