diff options
Diffstat (limited to 'crates/ide_completion/src/completions/keyword.rs')
-rw-r--r-- | crates/ide_completion/src/completions/keyword.rs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/crates/ide_completion/src/completions/keyword.rs b/crates/ide_completion/src/completions/keyword.rs index 0fccbeccf..2c42438d6 100644 --- a/crates/ide_completion/src/completions/keyword.rs +++ b/crates/ide_completion/src/completions/keyword.rs | |||
@@ -231,30 +231,6 @@ mod tests { | |||
231 | } | 231 | } |
232 | 232 | ||
233 | #[test] | 233 | #[test] |
234 | fn test_keywords_at_source_file_level() { | ||
235 | check( | ||
236 | r"m$0", | ||
237 | expect![[r#" | ||
238 | kw pub(crate) | ||
239 | kw pub | ||
240 | kw unsafe | ||
241 | kw fn | ||
242 | kw const | ||
243 | kw type | ||
244 | kw use | ||
245 | kw impl | ||
246 | kw trait | ||
247 | kw static | ||
248 | kw extern | ||
249 | kw mod | ||
250 | kw enum | ||
251 | kw struct | ||
252 | kw union | ||
253 | "#]], | ||
254 | ); | ||
255 | } | ||
256 | |||
257 | #[test] | ||
258 | fn test_keywords_in_function() { | 234 | fn test_keywords_in_function() { |
259 | check( | 235 | check( |
260 | r"fn quux() { $0 }", | 236 | r"fn quux() { $0 }", |
@@ -443,18 +419,6 @@ fn quux() -> i32 { | |||
443 | } | 419 | } |
444 | 420 | ||
445 | #[test] | 421 | #[test] |
446 | fn test_keywords_after_unsafe_in_item_list() { | ||
447 | check( | ||
448 | r"unsafe $0", | ||
449 | expect![[r#" | ||
450 | kw fn | ||
451 | kw trait | ||
452 | kw impl | ||
453 | "#]], | ||
454 | ); | ||
455 | } | ||
456 | |||
457 | #[test] | ||
458 | fn test_keywords_after_unsafe_in_block_expr() { | 422 | fn test_keywords_after_unsafe_in_block_expr() { |
459 | check( | 423 | check( |
460 | r"fn my_fn() { unsafe $0 }", | 424 | r"fn my_fn() { unsafe $0 }", |