diff options
Diffstat (limited to 'crates/ide_completion/src/tests')
-rw-r--r-- | crates/ide_completion/src/tests/item_list.rs | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/crates/ide_completion/src/tests/item_list.rs b/crates/ide_completion/src/tests/item_list.rs index e7b77d7e7..c8aa44d88 100644 --- a/crates/ide_completion/src/tests/item_list.rs +++ b/crates/ide_completion/src/tests/item_list.rs | |||
@@ -16,11 +16,11 @@ fn in_mod_item_list() { | |||
16 | kw fn | 16 | kw fn |
17 | kw const | 17 | kw const |
18 | kw type | 18 | kw type |
19 | kw use | ||
20 | kw impl | 19 | kw impl |
20 | kw extern | ||
21 | kw use | ||
21 | kw trait | 22 | kw trait |
22 | kw static | 23 | kw static |
23 | kw extern | ||
24 | kw mod | 24 | kw mod |
25 | kw enum | 25 | kw enum |
26 | kw struct | 26 | kw struct |
@@ -51,11 +51,11 @@ $0"#, | |||
51 | kw fn | 51 | kw fn |
52 | kw const | 52 | kw const |
53 | kw type | 53 | kw type |
54 | kw use | ||
55 | kw impl | 54 | kw impl |
55 | kw extern | ||
56 | kw use | ||
56 | kw trait | 57 | kw trait |
57 | kw static | 58 | kw static |
58 | kw extern | ||
59 | kw mod | 59 | kw mod |
60 | kw enum | 60 | kw enum |
61 | kw struct | 61 | kw struct |
@@ -89,11 +89,11 @@ crate::$0"#, | |||
89 | kw fn | 89 | kw fn |
90 | kw const | 90 | kw const |
91 | kw type | 91 | kw type |
92 | kw use | ||
93 | kw impl | 92 | kw impl |
93 | kw extern | ||
94 | kw use | ||
94 | kw trait | 95 | kw trait |
95 | kw static | 96 | kw static |
96 | kw extern | ||
97 | kw mod | 97 | kw mod |
98 | kw enum | 98 | kw enum |
99 | kw struct | 99 | kw struct |
@@ -119,17 +119,11 @@ mod bar {} | |||
119 | const CONST: () = (); | 119 | const CONST: () = (); |
120 | 120 | ||
121 | unsafe $0"#, | 121 | unsafe $0"#, |
122 | expect![[r##" | 122 | expect![[r#" |
123 | kw fn | 123 | kw fn |
124 | kw trait | 124 | kw trait |
125 | kw impl | 125 | kw impl |
126 | sn tmod (Test module) | 126 | "#]], |
127 | sn tfn (Test function) | ||
128 | sn macro_rules | ||
129 | md bar | ||
130 | ma foo!(…) #[macro_export] macro_rules! foo | ||
131 | ma foo!(…) #[macro_export] macro_rules! foo | ||
132 | "##]], | ||
133 | ); | 127 | ); |
134 | } | 128 | } |
135 | 129 | ||
@@ -145,26 +139,18 @@ mod bar {} | |||
145 | const CONST: () = (); | 139 | const CONST: () = (); |
146 | 140 | ||
147 | pub $0"#, | 141 | pub $0"#, |
148 | expect![[r##" | 142 | expect![[r#" |
149 | kw unsafe | 143 | kw unsafe |
150 | kw fn | 144 | kw fn |
151 | kw const | 145 | kw const |
152 | kw type | 146 | kw type |
153 | kw use | 147 | kw use |
154 | kw impl | ||
155 | kw trait | 148 | kw trait |
156 | kw static | 149 | kw static |
157 | kw extern | ||
158 | kw mod | 150 | kw mod |
159 | kw enum | 151 | kw enum |
160 | kw struct | 152 | kw struct |
161 | kw union | 153 | kw union |
162 | sn tmod (Test module) | 154 | "#]], |
163 | sn tfn (Test function) | ||
164 | sn macro_rules | ||
165 | md bar | ||
166 | ma foo!(…) #[macro_export] macro_rules! foo | ||
167 | ma foo!(…) #[macro_export] macro_rules! foo | ||
168 | "##]], | ||
169 | ); | 155 | ); |
170 | } | 156 | } |