aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/completion')
-rw-r--r--crates/ra_ide_api/src/completion/complete_path.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs
index e1c8d6ab0..e9fec54d8 100644
--- a/crates/ra_ide_api/src/completion/complete_path.rs
+++ b/crates/ra_ide_api/src/completion/complete_path.rs
@@ -52,14 +52,14 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) {
52 if let Some(krate) = krate { 52 if let Some(krate) = krate {
53 ty.iterate_impl_items(ctx.db, krate, |item| { 53 ty.iterate_impl_items(ctx.db, krate, |item| {
54 match item { 54 match item {
55 hir::ImplItem::Method(func) => { 55 hir::AssocItem::Function(func) => {
56 let data = func.data(ctx.db); 56 let data = func.data(ctx.db);
57 if !data.has_self_param() { 57 if !data.has_self_param() {
58 acc.add_function(ctx, func); 58 acc.add_function(ctx, func);
59 } 59 }
60 } 60 }
61 hir::ImplItem::Const(ct) => acc.add_const(ctx, ct), 61 hir::AssocItem::Const(ct) => acc.add_const(ctx, ct),
62 hir::ImplItem::TypeAlias(ty) => acc.add_type_alias(ctx, ty), 62 hir::AssocItem::TypeAlias(ty) => acc.add_type_alias(ctx, ty),
63 } 63 }
64 None::<()> 64 None::<()>
65 }); 65 });