aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/complete_scope.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_scope.rs')
-rw-r--r--crates/ra_ide_api/src/completion/complete_scope.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_scope.rs b/crates/ra_ide_api/src/completion/complete_scope.rs
index 4e56de3f5..9d2deee75 100644
--- a/crates/ra_ide_api/src/completion/complete_scope.rs
+++ b/crates/ra_ide_api/src/completion/complete_scope.rs
@@ -155,6 +155,7 @@ mod tests {
155 kind: Function, 155 kind: Function,
156 lookup: "quux", 156 lookup: "quux",
157 detail: "fn quux(x: i32)", 157 detail: "fn quux(x: i32)",
158 deprecated: false,
158 }, 159 },
159 CompletionItem { 160 CompletionItem {
160 label: "x", 161 label: "x",
@@ -218,6 +219,7 @@ mod tests {
218 kind: Function, 219 kind: Function,
219 lookup: "quux", 220 lookup: "quux",
220 detail: "fn quux()", 221 detail: "fn quux()",
222 deprecated: false,
221 }, 223 },
222 ] 224 ]
223 "### 225 "###
@@ -246,6 +248,7 @@ mod tests {
246 kind: Function, 248 kind: Function,
247 lookup: "quux", 249 lookup: "quux",
248 detail: "fn quux()", 250 detail: "fn quux()",
251 deprecated: false,
249 }, 252 },
250 CompletionItem { 253 CompletionItem {
251 label: "x", 254 label: "x",
@@ -286,6 +289,7 @@ mod tests {
286 kind: Function, 289 kind: Function,
287 lookup: "quux", 290 lookup: "quux",
288 detail: "fn quux<T>()", 291 detail: "fn quux<T>()",
292 deprecated: false,
289 }, 293 },
290 ] 294 ]
291 "### 295 "###
@@ -391,6 +395,7 @@ mod tests {
391 kind: Function, 395 kind: Function,
392 lookup: "quux", 396 lookup: "quux",
393 detail: "fn quux()", 397 detail: "fn quux()",
398 deprecated: false,
394 }, 399 },
395 ] 400 ]
396 "### 401 "###
@@ -450,6 +455,7 @@ mod tests {
450 kind: Function, 455 kind: Function,
451 lookup: "quux", 456 lookup: "quux",
452 detail: "fn quux()", 457 detail: "fn quux()",
458 deprecated: false,
453 }, 459 },
454 ] 460 ]
455 "### 461 "###
@@ -482,6 +488,7 @@ mod tests {
482 kind: Function, 488 kind: Function,
483 lookup: "x", 489 lookup: "x",
484 detail: "fn x()", 490 detail: "fn x()",
491 deprecated: false,
485 }, 492 },
486 ] 493 ]
487 "### 494 "###
@@ -520,6 +527,7 @@ mod tests {
520 kind: Function, 527 kind: Function,
521 lookup: "foo", 528 lookup: "foo",
522 detail: "fn foo()", 529 detail: "fn foo()",
530 deprecated: false,
523 }, 531 },
524 ] 532 ]
525 "### 533 "###
@@ -584,6 +592,7 @@ mod tests {
584 kind: Function, 592 kind: Function,
585 lookup: "foo", 593 lookup: "foo",
586 detail: "fn foo()", 594 detail: "fn foo()",
595 deprecated: false,
587 }, 596 },
588 CompletionItem { 597 CompletionItem {
589 label: "std", 598 label: "std",
@@ -639,6 +648,7 @@ mod tests {
639 insert: "bar!($0)", 648 insert: "bar!($0)",
640 kind: Macro, 649 kind: Macro,
641 detail: "macro_rules! bar", 650 detail: "macro_rules! bar",
651 deprecated: false,
642 }, 652 },
643 CompletionItem { 653 CompletionItem {
644 label: "baz!", 654 label: "baz!",
@@ -647,6 +657,7 @@ mod tests {
647 insert: "baz!($0)", 657 insert: "baz!($0)",
648 kind: Macro, 658 kind: Macro,
649 detail: "#[macro_export]\nmacro_rules! baz", 659 detail: "#[macro_export]\nmacro_rules! baz",
660 deprecated: false,
650 }, 661 },
651 CompletionItem { 662 CompletionItem {
652 label: "foo!", 663 label: "foo!",
@@ -655,6 +666,7 @@ mod tests {
655 insert: "foo!($0)", 666 insert: "foo!($0)",
656 kind: Macro, 667 kind: Macro,
657 detail: "macro_rules! foo", 668 detail: "macro_rules! foo",
669 deprecated: false,
658 }, 670 },
659 CompletionItem { 671 CompletionItem {
660 label: "m1", 672 label: "m1",
@@ -678,6 +690,7 @@ mod tests {
678 kind: Function, 690 kind: Function,
679 lookup: "main", 691 lookup: "main",
680 detail: "fn main()", 692 detail: "fn main()",
693 deprecated: false,
681 }, 694 },
682 ] 695 ]
683 "### 696 "###
@@ -708,6 +721,7 @@ mod tests {
708 insert: "foo!($0)", 721 insert: "foo!($0)",
709 kind: Macro, 722 kind: Macro,
710 detail: "macro_rules! foo", 723 detail: "macro_rules! foo",
724 deprecated: false,
711 }, 725 },
712 CompletionItem { 726 CompletionItem {
713 label: "foo()", 727 label: "foo()",
@@ -717,6 +731,7 @@ mod tests {
717 kind: Function, 731 kind: Function,
718 lookup: "foo", 732 lookup: "foo",
719 detail: "fn foo()", 733 detail: "fn foo()",
734 deprecated: false,
720 }, 735 },
721 ] 736 ]
722 "### 737 "###
@@ -747,6 +762,7 @@ mod tests {
747 insert: "foo!($0)", 762 insert: "foo!($0)",
748 kind: Macro, 763 kind: Macro,
749 detail: "macro_rules! foo", 764 detail: "macro_rules! foo",
765 deprecated: false,
750 }, 766 },
751 CompletionItem { 767 CompletionItem {
752 label: "main()", 768 label: "main()",
@@ -756,6 +772,7 @@ mod tests {
756 kind: Function, 772 kind: Function,
757 lookup: "main", 773 lookup: "main",
758 detail: "fn main()", 774 detail: "fn main()",
775 deprecated: false,
759 }, 776 },
760 ] 777 ]
761 "### 778 "###
@@ -786,6 +803,7 @@ mod tests {
786 insert: "foo!($0)", 803 insert: "foo!($0)",
787 kind: Macro, 804 kind: Macro,
788 detail: "macro_rules! foo", 805 detail: "macro_rules! foo",
806 deprecated: false,
789 }, 807 },
790 CompletionItem { 808 CompletionItem {
791 label: "main()", 809 label: "main()",
@@ -795,6 +813,7 @@ mod tests {
795 kind: Function, 813 kind: Function,
796 lookup: "main", 814 lookup: "main",
797 detail: "fn main()", 815 detail: "fn main()",
816 deprecated: false,
798 }, 817 },
799 ] 818 ]
800 "### 819 "###