diff options
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r-- | crates/ra_ide/src/goto_definition.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_ide/src/goto_definition.rs b/crates/ra_ide/src/goto_definition.rs index b1d567ca7..d3c198813 100644 --- a/crates/ra_ide/src/goto_definition.rs +++ b/crates/ra_ide/src/goto_definition.rs | |||
@@ -689,11 +689,13 @@ mod tests { | |||
689 | fo<|>o(); | 689 | fo<|>o(); |
690 | } | 690 | } |
691 | } | 691 | } |
692 | mod confuse_index { fn foo(); } | ||
692 | ", | 693 | ", |
693 | "foo FN_DEF FileId(1) [52; 63) [55; 58)", | 694 | "foo FN_DEF FileId(1) [52; 63) [55; 58)", |
694 | ); | 695 | ); |
695 | } | 696 | } |
696 | 697 | ||
698 | #[should_panic] // currently failing because of expr mapping problems | ||
697 | #[test] | 699 | #[test] |
698 | fn goto_through_format() { | 700 | fn goto_through_format() { |
699 | check_goto( | 701 | check_goto( |
@@ -711,6 +713,7 @@ mod tests { | |||
711 | } | 713 | } |
712 | pub mod __export { | 714 | pub mod __export { |
713 | pub use crate::format_args; | 715 | pub use crate::format_args; |
716 | fn foo() {} // for index confusion | ||
714 | } | 717 | } |
715 | fn foo() -> i8 {} | 718 | fn foo() -> i8 {} |
716 | fn test() { | 719 | fn test() { |