diff options
author | Kirill Bulatov <[email protected]> | 2020-02-22 22:23:33 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-02-22 22:44:15 +0000 |
commit | ca4557ac524c104bff03d5f6dfc7bece7c919608 (patch) | |
tree | 29529e62a16e8ac5db32706c6f44402bbc575c2b /crates/ra_ide/src | |
parent | 6670868d0976e1bf9dc320d4ab31b0d8297e505d (diff) |
Fix the tests
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r-- | crates/ra_ide/src/inlay_hints.rs | 110 |
1 files changed, 105 insertions, 5 deletions
diff --git a/crates/ra_ide/src/inlay_hints.rs b/crates/ra_ide/src/inlay_hints.rs index 09a463a4b..8d1c447ef 100644 --- a/crates/ra_ide/src/inlay_hints.rs +++ b/crates/ra_ide/src/inlay_hints.rs | |||
@@ -285,11 +285,6 @@ fn main() { | |||
285 | label: "i32", | 285 | label: "i32", |
286 | }, | 286 | }, |
287 | InlayHint { | 287 | InlayHint { |
288 | range: [584; 585), | ||
289 | kind: TypeHint, | ||
290 | label: "i32", | ||
291 | }, | ||
292 | InlayHint { | ||
293 | range: [577; 578), | 288 | range: [577; 578), |
294 | kind: TypeHint, | 289 | kind: TypeHint, |
295 | label: "f64", | 290 | label: "f64", |
@@ -300,6 +295,11 @@ fn main() { | |||
300 | label: "f64", | 295 | label: "f64", |
301 | }, | 296 | }, |
302 | InlayHint { | 297 | InlayHint { |
298 | range: [584; 585), | ||
299 | kind: TypeHint, | ||
300 | label: "i32", | ||
301 | }, | ||
302 | InlayHint { | ||
303 | range: [627; 628), | 303 | range: [627; 628), |
304 | kind: TypeHint, | 304 | kind: TypeHint, |
305 | label: "i32", | 305 | label: "i32", |
@@ -447,6 +447,11 @@ fn main() { | |||
447 | label: "CustomOption<Test>", | 447 | label: "CustomOption<Test>", |
448 | }, | 448 | }, |
449 | InlayHint { | 449 | InlayHint { |
450 | range: [287; 291), | ||
451 | kind: TypeHint, | ||
452 | label: "&CustomOption<Test>", | ||
453 | }, | ||
454 | InlayHint { | ||
450 | range: [334; 338), | 455 | range: [334; 338), |
451 | kind: TypeHint, | 456 | kind: TypeHint, |
452 | label: "&Test", | 457 | label: "&Test", |
@@ -462,10 +467,35 @@ fn main() { | |||
462 | label: "&u8", | 467 | label: "&u8", |
463 | }, | 468 | }, |
464 | InlayHint { | 469 | InlayHint { |
470 | range: [449; 450), | ||
471 | kind: TypeHint, | ||
472 | label: "&CustomOption<u32>", | ||
473 | }, | ||
474 | InlayHint { | ||
475 | range: [455; 456), | ||
476 | kind: TypeHint, | ||
477 | label: "&u8", | ||
478 | }, | ||
479 | InlayHint { | ||
465 | range: [531; 532), | 480 | range: [531; 532), |
466 | kind: TypeHint, | 481 | kind: TypeHint, |
467 | label: "&u32", | 482 | label: "&u32", |
468 | }, | 483 | }, |
484 | InlayHint { | ||
485 | range: [538; 539), | ||
486 | kind: TypeHint, | ||
487 | label: "&u8", | ||
488 | }, | ||
489 | InlayHint { | ||
490 | range: [618; 619), | ||
491 | kind: TypeHint, | ||
492 | label: "&u8", | ||
493 | }, | ||
494 | InlayHint { | ||
495 | range: [675; 676), | ||
496 | kind: TypeHint, | ||
497 | label: "&u8", | ||
498 | }, | ||
469 | ] | 499 | ] |
470 | "### | 500 | "### |
471 | ); | 501 | ); |
@@ -510,6 +540,11 @@ fn main() { | |||
510 | label: "CustomOption<Test>", | 540 | label: "CustomOption<Test>", |
511 | }, | 541 | }, |
512 | InlayHint { | 542 | InlayHint { |
543 | range: [293; 297), | ||
544 | kind: TypeHint, | ||
545 | label: "&CustomOption<Test>", | ||
546 | }, | ||
547 | InlayHint { | ||
513 | range: [343; 347), | 548 | range: [343; 347), |
514 | kind: TypeHint, | 549 | kind: TypeHint, |
515 | label: "&Test", | 550 | label: "&Test", |
@@ -525,10 +560,35 @@ fn main() { | |||
525 | label: "&u8", | 560 | label: "&u8", |
526 | }, | 561 | }, |
527 | InlayHint { | 562 | InlayHint { |
563 | range: [464; 465), | ||
564 | kind: TypeHint, | ||
565 | label: "&CustomOption<u32>", | ||
566 | }, | ||
567 | InlayHint { | ||
568 | range: [470; 471), | ||
569 | kind: TypeHint, | ||
570 | label: "&u8", | ||
571 | }, | ||
572 | InlayHint { | ||
528 | range: [549; 550), | 573 | range: [549; 550), |
529 | kind: TypeHint, | 574 | kind: TypeHint, |
530 | label: "&u32", | 575 | label: "&u32", |
531 | }, | 576 | }, |
577 | InlayHint { | ||
578 | range: [556; 557), | ||
579 | kind: TypeHint, | ||
580 | label: "&u8", | ||
581 | }, | ||
582 | InlayHint { | ||
583 | range: [639; 640), | ||
584 | kind: TypeHint, | ||
585 | label: "&u8", | ||
586 | }, | ||
587 | InlayHint { | ||
588 | range: [699; 700), | ||
589 | kind: TypeHint, | ||
590 | label: "&u8", | ||
591 | }, | ||
532 | ] | 592 | ] |
533 | "### | 593 | "### |
534 | ); | 594 | ); |
@@ -568,6 +628,11 @@ fn main() { | |||
568 | assert_debug_snapshot!(analysis.inlay_hints(file_id, None).unwrap(), @r###" | 628 | assert_debug_snapshot!(analysis.inlay_hints(file_id, None).unwrap(), @r###" |
569 | [ | 629 | [ |
570 | InlayHint { | 630 | InlayHint { |
631 | range: [272; 276), | ||
632 | kind: TypeHint, | ||
633 | label: "CustomOption<Test>", | ||
634 | }, | ||
635 | InlayHint { | ||
571 | range: [311; 315), | 636 | range: [311; 315), |
572 | kind: TypeHint, | 637 | kind: TypeHint, |
573 | label: "Test", | 638 | label: "Test", |
@@ -583,10 +648,35 @@ fn main() { | |||
583 | label: "u8", | 648 | label: "u8", |
584 | }, | 649 | }, |
585 | InlayHint { | 650 | InlayHint { |
651 | range: [410; 411), | ||
652 | kind: TypeHint, | ||
653 | label: "CustomOption<u32>", | ||
654 | }, | ||
655 | InlayHint { | ||
656 | range: [416; 417), | ||
657 | kind: TypeHint, | ||
658 | label: "u8", | ||
659 | }, | ||
660 | InlayHint { | ||
586 | range: [484; 485), | 661 | range: [484; 485), |
587 | kind: TypeHint, | 662 | kind: TypeHint, |
588 | label: "u32", | 663 | label: "u32", |
589 | }, | 664 | }, |
665 | InlayHint { | ||
666 | range: [491; 492), | ||
667 | kind: TypeHint, | ||
668 | label: "u8", | ||
669 | }, | ||
670 | InlayHint { | ||
671 | range: [563; 564), | ||
672 | kind: TypeHint, | ||
673 | label: "u8", | ||
674 | }, | ||
675 | InlayHint { | ||
676 | range: [612; 613), | ||
677 | kind: TypeHint, | ||
678 | label: "u8", | ||
679 | }, | ||
590 | ] | 680 | ] |
591 | "### | 681 | "### |
592 | ); | 682 | ); |
@@ -677,11 +767,21 @@ fn main() { | |||
677 | label: "msg", | 767 | label: "msg", |
678 | }, | 768 | }, |
679 | InlayHint { | 769 | InlayHint { |
770 | range: [277; 288), | ||
771 | kind: ParameterHint, | ||
772 | label: "last", | ||
773 | }, | ||
774 | InlayHint { | ||
680 | range: [331; 334), | 775 | range: [331; 334), |
681 | kind: ParameterHint, | 776 | kind: ParameterHint, |
682 | label: "param", | 777 | label: "param", |
683 | }, | 778 | }, |
684 | InlayHint { | 779 | InlayHint { |
780 | range: [354; 356), | ||
781 | kind: ParameterHint, | ||
782 | label: "&self", | ||
783 | }, | ||
784 | InlayHint { | ||
685 | range: [358; 362), | 785 | range: [358; 362), |
686 | kind: ParameterHint, | 786 | kind: ParameterHint, |
687 | label: "param", | 787 | label: "param", |