diff options
author | Aleksey Kladov <[email protected]> | 2019-01-24 12:40:52 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-24 12:40:52 +0000 |
commit | 2734636c532101565b1a4c4715790d4cc910ad47 (patch) | |
tree | e928bd977376f1cbd6b14c15fbe10ade7d09d709 /crates/ra_ide_api/src/completion/completion_item.rs | |
parent | 1754dd9fdd1bf7d3d72aa2bcb25f33fd8885cd7c (diff) |
update ide_api to new hir
Diffstat (limited to 'crates/ra_ide_api/src/completion/completion_item.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/completion_item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs index 5d6718a8d..5b2ba7e4a 100644 --- a/crates/ra_ide_api/src/completion/completion_item.rs +++ b/crates/ra_ide_api/src/completion/completion_item.rs | |||
@@ -219,6 +219,7 @@ impl Builder { | |||
219 | }; | 219 | }; |
220 | let (kind, docs) = match def { | 220 | let (kind, docs) = match def { |
221 | hir::ModuleDef::Module(_) => (CompletionItemKind::Module, None), | 221 | hir::ModuleDef::Module(_) => (CompletionItemKind::Module, None), |
222 | hir::ModuleDef::Function(func) => return self.from_function(ctx, func), | ||
222 | hir::ModuleDef::Def(def_id) => match def_id.resolve(ctx.db) { | 223 | hir::ModuleDef::Def(def_id) => match def_id.resolve(ctx.db) { |
223 | hir::Def::Struct(it) => (CompletionItemKind::Struct, it.docs(ctx.db)), | 224 | hir::Def::Struct(it) => (CompletionItemKind::Struct, it.docs(ctx.db)), |
224 | hir::Def::Enum(it) => (CompletionItemKind::Enum, it.docs(ctx.db)), | 225 | hir::Def::Enum(it) => (CompletionItemKind::Enum, it.docs(ctx.db)), |
@@ -226,7 +227,6 @@ impl Builder { | |||
226 | hir::Def::Type(it) => (CompletionItemKind::TypeAlias, it.docs(ctx.db)), | 227 | hir::Def::Type(it) => (CompletionItemKind::TypeAlias, it.docs(ctx.db)), |
227 | hir::Def::Const(it) => (CompletionItemKind::Const, it.docs(ctx.db)), | 228 | hir::Def::Const(it) => (CompletionItemKind::Const, it.docs(ctx.db)), |
228 | hir::Def::Static(it) => (CompletionItemKind::Static, it.docs(ctx.db)), | 229 | hir::Def::Static(it) => (CompletionItemKind::Static, it.docs(ctx.db)), |
229 | hir::Def::Function(function) => return self.from_function(ctx, function), | ||
230 | _ => return self, | 230 | _ => return self, |
231 | }, | 231 | }, |
232 | }; | 232 | }; |