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_struct_literal.rs1
-rw-r--r--crates/ra_ide_api/src/completion/presentation.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_struct_literal.rs b/crates/ra_ide_api/src/completion/complete_struct_literal.rs
index 48fbf67f7..a00c1b60b 100644
--- a/crates/ra_ide_api/src/completion/complete_struct_literal.rs
+++ b/crates/ra_ide_api/src/completion/complete_struct_literal.rs
@@ -20,6 +20,7 @@ pub(super) fn complete_struct_literal(acc: &mut Completions, ctx: &CompletionCon
20 } 20 }
21 21
22 // FIXME unions 22 // FIXME unions
23 AdtDef::Union(_) => (),
23 AdtDef::Enum(_) => (), 24 AdtDef::Enum(_) => (),
24 }; 25 };
25} 26}
diff --git a/crates/ra_ide_api/src/completion/presentation.rs b/crates/ra_ide_api/src/completion/presentation.rs
index 9aa346688..064d379a4 100644
--- a/crates/ra_ide_api/src/completion/presentation.rs
+++ b/crates/ra_ide_api/src/completion/presentation.rs
@@ -63,6 +63,7 @@ impl Completions {
63 return self.add_function_with_name(ctx, Some(local_name), *func); 63 return self.add_function_with_name(ctx, Some(local_name), *func);
64 } 64 }
65 Resolution::Def(Struct(it)) => (CompletionItemKind::Struct, it.docs(ctx.db)), 65 Resolution::Def(Struct(it)) => (CompletionItemKind::Struct, it.docs(ctx.db)),
66 Resolution::Def(Union(it)) => (CompletionItemKind::Struct, it.docs(ctx.db)),
66 Resolution::Def(Enum(it)) => (CompletionItemKind::Enum, it.docs(ctx.db)), 67 Resolution::Def(Enum(it)) => (CompletionItemKind::Enum, it.docs(ctx.db)),
67 Resolution::Def(EnumVariant(it)) => (CompletionItemKind::EnumVariant, it.docs(ctx.db)), 68 Resolution::Def(EnumVariant(it)) => (CompletionItemKind::EnumVariant, it.docs(ctx.db)),
68 Resolution::Def(Const(it)) => (CompletionItemKind::Const, it.docs(ctx.db)), 69 Resolution::Def(Const(it)) => (CompletionItemKind::Const, it.docs(ctx.db)),