aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/references
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-11-15 20:25:53 +0000
committerGitHub <[email protected]>2019-11-15 20:25:53 +0000
commit920848940ae7b79b1655ac48a9e2c1694b9e06c8 (patch)
treecd0d39cd13ae0a9ee7299db575bea1a854cc0102 /crates/ra_ide_api/src/references
parent86469d4195e7aeb93ae420d0c073593bfccc97f0 (diff)
parent4c90b7e2ecd03e739a3c92bbe5afd4c90fe2812d (diff)
Merge #2266
2266: Sourcify some things r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/references')
-rw-r--r--crates/ra_ide_api/src/references/classify.rs2
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;