aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-11-15 07:42:54 +0000
committerAleksey Kladov <[email protected]>2019-11-15 07:42:54 +0000
commita28907af8ca93077601053cf168ac2429855c394 (patch)
treee4930115d3f0249ea3f6f899a9b10b2a62a12bef /crates/ra_hir
parent9c7a2aef30cb35347af646dea5a5611af1224676 (diff)
Privatize modules
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/test_db.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/test_db.rs b/crates/ra_hir/src/test_db.rs
index 5237b303a..1caa2e875 100644
--- a/crates/ra_hir/src/test_db.rs
+++ b/crates/ra_hir/src/test_db.rs
@@ -81,7 +81,7 @@ impl TestDB {
81 let crate_graph = self.crate_graph(); 81 let crate_graph = self.crate_graph();
82 for krate in crate_graph.iter().next() { 82 for krate in crate_graph.iter().next() {
83 let crate_def_map = self.crate_def_map(krate); 83 let crate_def_map = self.crate_def_map(krate);
84 for (module_id, _) in crate_def_map.modules.iter() { 84 for module_id in crate_def_map.modules() {
85 let module_id = ModuleId { krate, module_id }; 85 let module_id = ModuleId { krate, module_id };
86 let module = crate::Module::from(module_id); 86 let module = crate::Module::from(module_id);
87 module.diagnostics( 87 module.diagnostics(