diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-08 11:37:05 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-08 11:37:05 +0000 |
commit | b5fc999e7dafa8217d77088ae10bff96e767a3e9 (patch) | |
tree | 7fb47d6afa2eca87d2cd330e8e39af2ce3615dd5 /crates/ra_ide_api/src/goto_definition.rs | |
parent | 9a1d2a46c249fa81294c156b9e23b624e14495cd (diff) | |
parent | 884f04670aea239f06fe5b6ff7a9f2073034f8bc (diff) |
Merge #765
765: Jettison `imp` module r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/goto_definition.rs')
-rw-r--r-- | crates/ra_ide_api/src/goto_definition.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/goto_definition.rs b/crates/ra_ide_api/src/goto_definition.rs index 681f36623..69f2d2bf6 100644 --- a/crates/ra_ide_api/src/goto_definition.rs +++ b/crates/ra_ide_api/src/goto_definition.rs | |||
@@ -118,8 +118,7 @@ pub(crate) fn reference_definition( | |||
118 | } | 118 | } |
119 | } | 119 | } |
120 | // If that fails try the index based approach. | 120 | // If that fails try the index based approach. |
121 | let navs = db | 121 | let navs = crate::symbol_index::index_resolve(db, name_ref) |
122 | .index_resolve(name_ref) | ||
123 | .into_iter() | 122 | .into_iter() |
124 | .map(NavigationTarget::from_symbol) | 123 | .map(NavigationTarget::from_symbol) |
125 | .collect(); | 124 | .collect(); |