diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-04 11:26:18 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-04 11:26:18 +0100 |
commit | 0ef4665d42ed7274ee847306722e2a53d2603bc9 (patch) | |
tree | 00af22ec878cd6bf0d25d0d247b3d09ef6c6bb2d /crates/ra_ide/src/goto_definition.rs | |
parent | 9134d888b1f0d901f3338684f65bcf7c8ec6d413 (diff) | |
parent | 710e430dbb9048c473d0e19e714cef9e279fac11 (diff) |
Merge #4292
4292: Fix focus range for TypeParam r=matklad a=matklad
closes #4274
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide/src/goto_definition.rs')
-rw-r--r-- | crates/ra_ide/src/goto_definition.rs | 10 |
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 | ||