aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/goto_definition.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-05-04 11:20:38 +0100
committerAleksey Kladov <[email protected]>2020-05-04 11:25:32 +0100
commit710e430dbb9048c473d0e19e714cef9e279fac11 (patch)
tree00af22ec878cd6bf0d25d0d247b3d09ef6c6bb2d /crates/ra_ide/src/goto_definition.rs
parent13bce1a1641cbcf57ae24677c238e2c1ca393dea (diff)
Fix focus range for TypeParam
closes #4274
Diffstat (limited to 'crates/ra_ide/src/goto_definition.rs')
-rw-r--r--crates/ra_ide/src/goto_definition.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_ide/src/goto_definition.rs b/crates/ra_ide/src/goto_definition.rs
index 1dfca819d..dbb4f38c7 100644
--- a/crates/ra_ide/src/goto_definition.rs
+++ b/crates/ra_ide/src/goto_definition.rs
@@ -754,14 +754,14 @@ mod tests {
754 #[test] 754 #[test]
755 fn goto_for_type_param() { 755 fn goto_for_type_param() {
756 check_goto( 756 check_goto(
757 " 757 r#"
758 //- /lib.rs 758 //- /lib.rs
759 struct Foo<T> { 759 struct Foo<T: Clone> {
760 t: <|>T, 760 t: <|>T,
761 } 761 }
762 ", 762 "#,
763 "T TYPE_PARAM FileId(1) 11..12", 763 "T TYPE_PARAM FileId(1) 11..19 11..12",
764 "T", 764 "T: Clone|T",
765 ); 765 );
766 } 766 }
767 767