diff options
author | Aleksey Kladov <[email protected]> | 2019-11-15 20:24:56 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-15 20:24:56 +0000 |
commit | 4c90b7e2ecd03e739a3c92bbe5afd4c90fe2812d (patch) | |
tree | 3f95c69830b973c86362586dcbc25831996dfe98 /crates/ra_ide_api/src/references/classify.rs | |
parent | 1889b3c7b52c1070734dc449d4119c5e5cf991a4 (diff) |
Sourcify some things
If we want to support macros properly, we need to get rid of those
FileIds everywhere...
Diffstat (limited to 'crates/ra_ide_api/src/references/classify.rs')
-rw-r--r-- | crates/ra_ide_api/src/references/classify.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/references/classify.rs b/crates/ra_ide_api/src/references/classify.rs index 00690e449..b5e35e29f 100644 --- a/crates/ra_ide_api/src/references/classify.rs +++ b/crates/ra_ide_api/src/references/classify.rs | |||
@@ -144,8 +144,8 @@ pub(crate) fn classify_name_ref( | |||
144 | } | 144 | } |
145 | } | 145 | } |
146 | 146 | ||
147 | let ast = ModuleSource::from_child_node(db, file_id, &parent); | ||
148 | let file_id = file_id.into(); | 147 | let file_id = file_id.into(); |
148 | let ast = ModuleSource::from_child_node(db, Source::new(file_id, &parent)); | ||
149 | // FIXME: find correct container and visibility for each case | 149 | // FIXME: find correct container and visibility for each case |
150 | let container = Module::from_definition(db, Source { file_id, ast })?; | 150 | let container = Module::from_definition(db, Source { file_id, ast })?; |
151 | let visibility = None; | 151 | let visibility = None; |