aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/references
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-01-16 15:37:51 +0000
committerAleksey Kladov <[email protected]>2020-01-16 15:37:51 +0000
commit7aa627fe582e8811e9e98b58c8a6da80054ba2e3 (patch)
treeef5a255acddf3aeef6dcb2f38a1d937c36a55242 /crates/ra_ide/src/references
parenta3d6ddbe694498a1bf69c6253422efb89431164e (diff)
Move more stuff to SourceBinder
Diffstat (limited to 'crates/ra_ide/src/references')
-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),