-#[cfg(test)]
-mod tests {
- use expect_test::{expect, Expect};
-
- use crate::{
- tests::{check_edit, filtered_completion_list},
- CompletionKind,
- };
-
- fn check(ra_fixture: &str, expect: Expect) {
- let actual = filtered_completion_list(ra_fixture, CompletionKind::Reference);
- expect.assert_eq(&actual);
+pub(crate) fn complete_record_literal(
+ acc: &mut Completions,
+ ctx: &CompletionContext,
+) -> Option<()> {
+ if !ctx.expects_expression() {
+ return None;