diff options
author | Aleksey Kladov <[email protected]> | 2020-01-16 15:08:46 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-01-16 15:08:46 +0000 |
commit | 81a45ca1b3606d2c328740aa7e2dc989b9e128a5 (patch) | |
tree | beb2951ab9f7a7ab1420cb072c8839957c6de02f /crates/ra_ide/src/references | |
parent | f4eeff2c82e7d8b95706c2bcb0388eeeb3ddd24e (diff) |
Make FromSource private
Diffstat (limited to 'crates/ra_ide/src/references')
-rw-r--r-- | crates/ra_ide/src/references/classify.rs | 4 |
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 4a6e11e27..dcffc3df2 100644 --- a/crates/ra_ide/src/references/classify.rs +++ b/crates/ra_ide/src/references/classify.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | //! Functions that are used to classify an element from its definition or reference. | 1 | //! Functions that are used to classify an element from its definition or reference. |
2 | 2 | ||
3 | use hir::{FromSource, InFile, Module, ModuleSource, PathResolution, SourceBinder}; | 3 | use hir::{InFile, Module, ModuleSource, PathResolution, SourceBinder}; |
4 | use ra_prof::profile; | 4 | use ra_prof::profile; |
5 | use ra_syntax::{ast, match_ast, AstNode}; | 5 | use ra_syntax::{ast, match_ast, AstNode}; |
6 | use test_utils::tested_by; | 6 | use test_utils::tested_by; |
@@ -101,7 +101,7 @@ pub(crate) fn classify_name( | |||
101 | }, | 101 | }, |
102 | ast::MacroCall(it) => { | 102 | ast::MacroCall(it) => { |
103 | let src = name.with_value(it); | 103 | let src = name.with_value(it); |
104 | let def = hir::MacroDef::from_source(sb.db, src.clone())?; | 104 | let def = sb.to_def(src.clone())?; |
105 | 105 | ||
106 | let module_src = ModuleSource::from_child_node(sb.db, src.as_ref().map(|it| it.syntax())); | 106 | let module_src = ModuleSource::from_child_node(sb.db, src.as_ref().map(|it| it.syntax())); |
107 | let module = Module::from_definition(sb.db, src.with_value(module_src))?; | 107 | let module = Module::from_definition(sb.db, src.with_value(module_src))?; |