diff options
author | Martin Asquino <[email protected]> | 2019-11-02 02:52:59 +0000 |
---|---|---|
committer | Martin Asquino <[email protected]> | 2019-11-02 20:37:47 +0000 |
commit | dc3848a6a3e659004ba4f2160503be28ea0f9051 (patch) | |
tree | d146b883f6352cbc647d8ad484377242582a7c39 /crates/ra_ide_api/src/completion/complete_record_pattern.rs | |
parent | eb8f76a86fe88fcad370577b344f397dd6118cfd (diff) |
Set `deprecated` field on `CompletionItem`s
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_record_pattern.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_record_pattern.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_record_pattern.rs b/crates/ra_ide_api/src/completion/complete_record_pattern.rs index d20fa796c..93c26f229 100644 --- a/crates/ra_ide_api/src/completion/complete_record_pattern.rs +++ b/crates/ra_ide_api/src/completion/complete_record_pattern.rs | |||
@@ -52,6 +52,7 @@ mod tests { | |||
52 | ⋮ insert: "foo", | 52 | ⋮ insert: "foo", |
53 | ⋮ kind: Field, | 53 | ⋮ kind: Field, |
54 | ⋮ detail: "u32", | 54 | ⋮ detail: "u32", |
55 | ⋮ deprecated: false, | ||
55 | ⋮ }, | 56 | ⋮ }, |
56 | ⋮] | 57 | ⋮] |
57 | "###); | 58 | "###); |
@@ -81,6 +82,7 @@ mod tests { | |||
81 | ⋮ insert: "bar", | 82 | ⋮ insert: "bar", |
82 | ⋮ kind: Field, | 83 | ⋮ kind: Field, |
83 | ⋮ detail: "()", | 84 | ⋮ detail: "()", |
85 | ⋮ deprecated: false, | ||
84 | ⋮ }, | 86 | ⋮ }, |
85 | ⋮ CompletionItem { | 87 | ⋮ CompletionItem { |
86 | ⋮ label: "foo", | 88 | ⋮ label: "foo", |
@@ -89,6 +91,7 @@ mod tests { | |||
89 | ⋮ insert: "foo", | 91 | ⋮ insert: "foo", |
90 | ⋮ kind: Field, | 92 | ⋮ kind: Field, |
91 | ⋮ detail: "u32", | 93 | ⋮ detail: "u32", |
94 | ⋮ deprecated: false, | ||
92 | ⋮ }, | 95 | ⋮ }, |
93 | ⋮] | 96 | ⋮] |
94 | "###); | 97 | "###); |