aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r--crates/ra_ide/src/completion.rs4
-rw-r--r--crates/ra_ide/src/completion/complete_trait_impl.rs (renamed from crates/ra_ide/src/completion/complete_impl_fn.rs)2
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ide/src/completion.rs b/crates/ra_ide/src/completion.rs
index f31f2593c..ad7f6ef26 100644
--- a/crates/ra_ide/src/completion.rs
+++ b/crates/ra_ide/src/completion.rs
@@ -15,7 +15,7 @@ mod complete_path;
15mod complete_scope; 15mod complete_scope;
16mod complete_postfix; 16mod complete_postfix;
17mod complete_macro_in_item_position; 17mod complete_macro_in_item_position;
18mod complete_impl_fn; 18mod complete_trait_impl;
19 19
20use ra_db::SourceDatabase; 20use ra_db::SourceDatabase;
21 21
@@ -74,7 +74,7 @@ pub(crate) fn completions(db: &db::RootDatabase, position: FilePosition) -> Opti
74 complete_pattern::complete_pattern(&mut acc, &ctx); 74 complete_pattern::complete_pattern(&mut acc, &ctx);
75 complete_postfix::complete_postfix(&mut acc, &ctx); 75 complete_postfix::complete_postfix(&mut acc, &ctx);
76 complete_macro_in_item_position::complete_macro_in_item_position(&mut acc, &ctx); 76 complete_macro_in_item_position::complete_macro_in_item_position(&mut acc, &ctx);
77 complete_impl_fn::complete_impl_fn(&mut acc, &ctx); 77 complete_trait_impl::complete_trait_impl(&mut acc, &ctx);
78 78
79 Some(acc) 79 Some(acc)
80} 80}
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
6use ra_syntax::{ ast, ast::AstNode }; 6use ra_syntax::{ ast, ast::AstNode };
7 7
8pub(crate) fn complete_impl_fn(acc: &mut Completions, ctx: &CompletionContext) { 8pub(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))