diff options
Diffstat (limited to 'crates/ide/src/runnables.rs')
-rw-r--r-- | crates/ide/src/runnables.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index f4030f3ef..557563d7e 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs | |||
@@ -329,7 +329,7 @@ mod tests { | |||
329 | check( | 329 | check( |
330 | r#" | 330 | r#" |
331 | //- /lib.rs | 331 | //- /lib.rs |
332 | <|> | 332 | $0 |
333 | fn main() {} | 333 | fn main() {} |
334 | 334 | ||
335 | #[test] | 335 | #[test] |
@@ -425,7 +425,7 @@ fn bench() {} | |||
425 | check( | 425 | check( |
426 | r#" | 426 | r#" |
427 | //- /lib.rs | 427 | //- /lib.rs |
428 | <|> | 428 | $0 |
429 | fn main() {} | 429 | fn main() {} |
430 | 430 | ||
431 | /// ``` | 431 | /// ``` |
@@ -573,7 +573,7 @@ struct StructWithRunnable(String); | |||
573 | check( | 573 | check( |
574 | r#" | 574 | r#" |
575 | //- /lib.rs | 575 | //- /lib.rs |
576 | <|> | 576 | $0 |
577 | fn main() {} | 577 | fn main() {} |
578 | 578 | ||
579 | struct Data; | 579 | struct Data; |
@@ -625,7 +625,7 @@ impl Data { | |||
625 | check( | 625 | check( |
626 | r#" | 626 | r#" |
627 | //- /lib.rs | 627 | //- /lib.rs |
628 | <|> | 628 | $0 |
629 | mod test_mod { | 629 | mod test_mod { |
630 | #[test] | 630 | #[test] |
631 | fn test_foo1() {} | 631 | fn test_foo1() {} |
@@ -679,7 +679,7 @@ mod test_mod { | |||
679 | check( | 679 | check( |
680 | r#" | 680 | r#" |
681 | //- /lib.rs | 681 | //- /lib.rs |
682 | <|> | 682 | $0 |
683 | mod root_tests { | 683 | mod root_tests { |
684 | mod nested_tests_0 { | 684 | mod nested_tests_0 { |
685 | mod nested_tests_1 { | 685 | mod nested_tests_1 { |
@@ -819,7 +819,7 @@ mod root_tests { | |||
819 | check( | 819 | check( |
820 | r#" | 820 | r#" |
821 | //- /lib.rs crate:foo cfg:feature=foo | 821 | //- /lib.rs crate:foo cfg:feature=foo |
822 | <|> | 822 | $0 |
823 | #[test] | 823 | #[test] |
824 | #[cfg(feature = "foo")] | 824 | #[cfg(feature = "foo")] |
825 | fn test_foo1() {} | 825 | fn test_foo1() {} |
@@ -864,7 +864,7 @@ fn test_foo1() {} | |||
864 | check( | 864 | check( |
865 | r#" | 865 | r#" |
866 | //- /lib.rs crate:foo cfg:feature=foo,feature=bar | 866 | //- /lib.rs crate:foo cfg:feature=foo,feature=bar |
867 | <|> | 867 | $0 |
868 | #[test] | 868 | #[test] |
869 | #[cfg(all(feature = "foo", feature = "bar"))] | 869 | #[cfg(all(feature = "foo", feature = "bar"))] |
870 | fn test_foo1() {} | 870 | fn test_foo1() {} |
@@ -919,7 +919,7 @@ fn test_foo1() {} | |||
919 | check( | 919 | check( |
920 | r#" | 920 | r#" |
921 | //- /lib.rs | 921 | //- /lib.rs |
922 | <|> | 922 | $0 |
923 | mod test_mod { | 923 | mod test_mod { |
924 | fn foo1() {} | 924 | fn foo1() {} |
925 | } | 925 | } |
@@ -938,7 +938,7 @@ mod test_mod { | |||
938 | //- /lib.rs | 938 | //- /lib.rs |
939 | mod foo; | 939 | mod foo; |
940 | //- /foo.rs | 940 | //- /foo.rs |
941 | struct Foo;<|> | 941 | struct Foo;$0 |
942 | impl Foo { | 942 | impl Foo { |
943 | /// ``` | 943 | /// ``` |
944 | /// let x = 5; | 944 | /// let x = 5; |