aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/complete_record_literal.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-11-15 09:57:00 +0000
committerGitHub <[email protected]>2019-11-15 09:57:00 +0000
commite1b7af43e3c916dd19ced585cd2cc3a6a00a59ac (patch)
tree5674794ed5d5eb7be2026d6cf2105602fa87d882 /crates/ra_ide_api/src/completion/complete_record_literal.rs
parente05fc9455dd64c240ddc5896f739ea3842838210 (diff)
parent3564fbb7f5fc7fc91530c441a6dacce88762fcc9 (diff)
Merge #2254
2254: Auto-upgrade some insta snapshots r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_record_literal.rs')
-rw-r--r--crates/ra_ide_api/src/completion/complete_record_literal.rs102
1 files changed, 51 insertions, 51 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_record_literal.rs b/crates/ra_ide_api/src/completion/complete_record_literal.rs
index 0295b8101..45a4a9738 100644
--- a/crates/ra_ide_api/src/completion/complete_record_literal.rs
+++ b/crates/ra_ide_api/src/completion/complete_record_literal.rs
@@ -45,17 +45,17 @@ mod tests {
45 ", 45 ",
46 ); 46 );
47 assert_debug_snapshot!(completions, @r###" 47 assert_debug_snapshot!(completions, @r###"
48 [ 48 [
49 CompletionItem { 49 CompletionItem {
50 label: "the_field", 50 label: "the_field",
51 source_range: [142; 145), 51 source_range: [142; 145),
52 delete: [142; 145), 52 delete: [142; 145),
53 insert: "the_field", 53 insert: "the_field",
54 kind: Field, 54 kind: Field,
55 detail: "u32", 55 detail: "u32",
56 deprecated: true, 56 deprecated: true,
57 }, 57 },
58 ] 58 ]
59 "###); 59 "###);
60 } 60 }
61 61
@@ -70,16 +70,16 @@ mod tests {
70 ", 70 ",
71 ); 71 );
72 assert_debug_snapshot!(completions, @r###" 72 assert_debug_snapshot!(completions, @r###"
73 [ 73 [
74 CompletionItem { 74 CompletionItem {
75 label: "the_field", 75 label: "the_field",
76 source_range: [83; 86), 76 source_range: [83; 86),
77 delete: [83; 86), 77 delete: [83; 86),
78 insert: "the_field", 78 insert: "the_field",
79 kind: Field, 79 kind: Field,
80 detail: "u32", 80 detail: "u32",
81 }, 81 },
82 ] 82 ]
83 "###); 83 "###);
84 } 84 }
85 85
@@ -96,16 +96,16 @@ mod tests {
96 ", 96 ",
97 ); 97 );
98 assert_debug_snapshot!(completions, @r###" 98 assert_debug_snapshot!(completions, @r###"
99 [ 99 [
100 CompletionItem { 100 CompletionItem {
101 label: "a", 101 label: "a",
102 source_range: [119; 119), 102 source_range: [119; 119),
103 delete: [119; 119), 103 delete: [119; 119),
104 insert: "a", 104 insert: "a",
105 kind: Field, 105 kind: Field,
106 detail: "u32", 106 detail: "u32",
107 }, 107 },
108 ] 108 ]
109 "###); 109 "###);
110 } 110 }
111 111
@@ -122,16 +122,16 @@ mod tests {
122 ", 122 ",
123 ); 123 );
124 assert_debug_snapshot!(completions, @r###" 124 assert_debug_snapshot!(completions, @r###"
125 [ 125 [
126 CompletionItem { 126 CompletionItem {
127 label: "b", 127 label: "b",
128 source_range: [119; 119), 128 source_range: [119; 119),
129 delete: [119; 119), 129 delete: [119; 119),
130 insert: "b", 130 insert: "b",
131 kind: Field, 131 kind: Field,
132 detail: "u32", 132 detail: "u32",
133 }, 133 },
134 ] 134 ]
135 "###); 135 "###);
136 } 136 }
137 137
@@ -147,16 +147,16 @@ mod tests {
147 ", 147 ",
148 ); 148 );
149 assert_debug_snapshot!(completions, @r###" 149 assert_debug_snapshot!(completions, @r###"
150 [ 150 [
151 CompletionItem { 151 CompletionItem {
152 label: "a", 152 label: "a",
153 source_range: [93; 93), 153 source_range: [93; 93),
154 delete: [93; 93), 154 delete: [93; 93),
155 insert: "a", 155 insert: "a",
156 kind: Field, 156 kind: Field,
157 detail: "u32", 157 detail: "u32",
158 }, 158 },
159 ] 159 ]
160 "###); 160 "###);
161 } 161 }
162} 162}