aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-12-06 20:24:41 +0000
committerFlorian Diebold <[email protected]>2019-12-06 20:25:22 +0000
commitc80dc0ad3aee717f9d15c11d300d0eb1c10f1cc8 (patch)
treeaafd9a179fcf3125f7360b7a57ed8d064b796dda /crates/ra_ide
parent4a99ef5c39e670162ea3c35d53ccd75b81281865 (diff)
Make the goto_through_format test actually fail :(
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/goto_definition.rs3
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() {