aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-09-16 21:01:13 +0100
committerFlorian Diebold <[email protected]>2019-09-17 18:47:45 +0100
commita040fde3ae5e339199237f24a7461812e74475bf (patch)
tree007e93e160cd6f0c5e62a4ed4ac72e8f6f8bf76b /crates/ra_ide_api
parent53a932509dbb9dfdaabb27a0d7fc3fe87e44ec55 (diff)
Remove TraitItem and ImplItem in favor of AssocItem
Diffstat (limited to 'crates/ra_ide_api')
-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 });