aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-10 13:42:26 +0100
committerAleksey Kladov <[email protected]>2020-07-10 13:42:26 +0100
commit075380dd56439cdaf1967b7298e10b96b995fc07 (patch)
tree754d726b02595db4dcc4594712e30ca97a336988
parentcd4502fd47ecd74ac52815fe8598b002ca1316a0 (diff)
Look through Arc for goto type definition
-rw-r--r--crates/ra_ide/src/goto_type_definition.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/goto_type_definition.rs b/crates/ra_ide/src/goto_type_definition.rs
index 723c3e8ae..069cb283e 100644
--- a/crates/ra_ide/src/goto_type_definition.rs
+++ b/crates/ra_ide/src/goto_type_definition.rs
@@ -35,7 +35,7 @@ pub(crate) fn goto_type_definition(
35 Some((ty, node)) 35 Some((ty, node))
36 })?; 36 })?;
37 37
38 let adt_def = ty.autoderef(db).find_map(|ty| ty.as_adt())?; 38 let adt_def = ty.autoderef(db).filter_map(|ty| ty.as_adt()).last()?;
39 39
40 let nav = adt_def.to_nav(db); 40 let nav = adt_def.to_nav(db);
41 Some(RangeInfo::new(node.text_range(), vec![nav])) 41 Some(RangeInfo::new(node.text_range(), vec![nav]))