diff options
Diffstat (limited to 'crates/ide_completion/src/completions/keyword.rs')
-rw-r--r-- | crates/ide_completion/src/completions/keyword.rs | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/crates/ide_completion/src/completions/keyword.rs b/crates/ide_completion/src/completions/keyword.rs index 7970e75c7..0a3df79d4 100644 --- a/crates/ide_completion/src/completions/keyword.rs +++ b/crates/ide_completion/src/completions/keyword.rs | |||
@@ -350,49 +350,6 @@ fn quux() -> i32 { | |||
350 | } | 350 | } |
351 | 351 | ||
352 | #[test] | 352 | #[test] |
353 | fn test_keywords_in_trait_def() { | ||
354 | check( | ||
355 | r"trait My { $0 }", | ||
356 | expect![[r#" | ||
357 | kw unsafe | ||
358 | kw fn | ||
359 | kw const | ||
360 | kw type | ||
361 | "#]], | ||
362 | ); | ||
363 | } | ||
364 | |||
365 | #[test] | ||
366 | fn test_keywords_in_impl_def() { | ||
367 | check( | ||
368 | r"impl My { $0 }", | ||
369 | expect![[r#" | ||
370 | kw pub(crate) | ||
371 | kw pub | ||
372 | kw unsafe | ||
373 | kw fn | ||
374 | kw const | ||
375 | kw type | ||
376 | "#]], | ||
377 | ); | ||
378 | } | ||
379 | |||
380 | #[test] | ||
381 | fn test_keywords_in_impl_def_with_attr() { | ||
382 | check( | ||
383 | r"impl My { #[foo] $0 }", | ||
384 | expect![[r#" | ||
385 | kw pub(crate) | ||
386 | kw pub | ||
387 | kw unsafe | ||
388 | kw fn | ||
389 | kw const | ||
390 | kw type | ||
391 | "#]], | ||
392 | ); | ||
393 | } | ||
394 | |||
395 | #[test] | ||
396 | fn test_keywords_in_loop() { | 353 | fn test_keywords_in_loop() { |
397 | check( | 354 | check( |
398 | r"fn my() { loop { $0 } }", | 355 | r"fn my() { loop { $0 } }", |