aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_hir/src/nameres/collector.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/nameres/collector.rs b/crates/ra_hir/src/nameres/collector.rs
index 7eee3cb38..b8840e37c 100644
--- a/crates/ra_hir/src/nameres/collector.rs
+++ b/crates/ra_hir/src/nameres/collector.rs
@@ -497,7 +497,7 @@ where
497 497
498 fn collect_module(&mut self, module: &raw::ModuleData) { 498 fn collect_module(&mut self, module: &raw::ModuleData) {
499 match module { 499 match module {
500 // inline module, just recursive 500 // inline module, just recurse
501 raw::ModuleData::Definition { name, items, ast_id } => { 501 raw::ModuleData::Definition { name, items, ast_id } => {
502 let module_id = 502 let module_id =
503 self.push_child_module(name.clone(), ast_id.with_file_id(self.file_id), None); 503 self.push_child_module(name.clone(), ast_id.with_file_id(self.file_id), None);
@@ -509,7 +509,7 @@ where
509 } 509 }
510 .collect(&*items); 510 .collect(&*items);
511 } 511 }
512 // out of line module, resolve, parse and recursive 512 // out of line module, resolve, parse and recurse
513 raw::ModuleData::Declaration { name, ast_id, attr_path } => { 513 raw::ModuleData::Declaration { name, ast_id, attr_path } => {
514 let ast_id = ast_id.with_file_id(self.file_id); 514 let ast_id = ast_id.with_file_id(self.file_id);
515 let is_root = self.def_collector.def_map.modules[self.module_id].parent.is_none(); 515 let is_root = self.def_collector.def_map.modules[self.module_id].parent.is_none();