From 2195d1db6d70d64383bec82819fab02891d09744 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 13 Mar 2019 16:38:02 +0300 Subject: Replace module_tree with CrateDefMap --- crates/ra_hir/src/nameres/crate_def_map/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir/src/nameres/crate_def_map/tests.rs') diff --git a/crates/ra_hir/src/nameres/crate_def_map/tests.rs b/crates/ra_hir/src/nameres/crate_def_map/tests.rs index a56dbaf90..742a19e5c 100644 --- a/crates/ra_hir/src/nameres/crate_def_map/tests.rs +++ b/crates/ra_hir/src/nameres/crate_def_map/tests.rs @@ -15,7 +15,7 @@ fn compute_crate_def_map(fixture: &str, graph: Option) -> Arc } let crate_id = db.crate_graph().iter().next().unwrap(); let krate = Crate { crate_id }; - collector::crate_def_map_query(&db, krate) + db.crate_def_map(krate) } fn render_crate_def_map(map: &CrateDefMap) -> String { -- cgit v1.2.3