aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r--crates/ra_ide/src/references/classify.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/references/classify.rs b/crates/ra_ide/src/references/classify.rs
index dcffc3df2..82a18a0a5 100644
--- a/crates/ra_ide/src/references/classify.rs
+++ b/crates/ra_ide/src/references/classify.rs
@@ -22,7 +22,7 @@ pub(crate) fn classify_name(
22 match parent { 22 match parent {
23 ast::BindPat(it) => { 23 ast::BindPat(it) => {
24 let src = name.with_value(it); 24 let src = name.with_value(it);
25 let local = hir::Local::from_source(sb.db, src)?; 25 let local = sb.to_def(src)?;
26 Some(NameDefinition { 26 Some(NameDefinition {
27 visibility: None, 27 visibility: None,
28 container: local.module(sb.db), 28 container: local.module(sb.db),
@@ -114,7 +114,7 @@ pub(crate) fn classify_name(
114 }, 114 },
115 ast::TypeParam(it) => { 115 ast::TypeParam(it) => {
116 let src = name.with_value(it); 116 let src = name.with_value(it);
117 let def = hir::TypeParam::from_source(sb.db, src)?; 117 let def = sb.to_def(src)?;
118 Some(NameDefinition { 118 Some(NameDefinition {
119 visibility: None, 119 visibility: None,
120 container: def.module(sb.db), 120 container: def.module(sb.db),