aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/display
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-05-13 22:04:04 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-05-13 22:04:04 +0100
commitbebc5c71664a144b9addd357eb503f776f2cf416 (patch)
treea7e95d622803bd745a93713dbce396be11846543 /crates/ra_ide_api/src/display
parentd7a4ae43f9308f683ddb3ca89104c5eb12d8d6b3 (diff)
parent549728bba87ed8f4375f27bb9a77223bf8f65452 (diff)
Merge #1271
1271: make AstId untyped r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/display')
-rw-r--r--crates/ra_ide_api/src/display/navigation_target.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/display/navigation_target.rs b/crates/ra_ide_api/src/display/navigation_target.rs
index 765cf883b..7ea336c50 100644
--- a/crates/ra_ide_api/src/display/navigation_target.rs
+++ b/crates/ra_ide_api/src/display/navigation_target.rs
@@ -81,7 +81,7 @@ impl NavigationTarget {
81 ) -> NavigationTarget { 81 ) -> NavigationTarget {
82 let file = db.parse(file_id); 82 let file = db.parse(file_id);
83 let (name, full_range) = match pat { 83 let (name, full_range) = match pat {
84 Either::A(pat) => match pat.to_node(&file).kind() { 84 Either::A(pat) => match pat.to_node(file.syntax()).kind() {
85 ast::PatKind::BindPat(pat) => { 85 ast::PatKind::BindPat(pat) => {
86 return NavigationTarget::from_bind_pat(file_id, &pat) 86 return NavigationTarget::from_bind_pat(file_id, &pat)
87 } 87 }