diff options
author | Alexander Andreev <[email protected]> | 2019-07-13 19:51:20 +0100 |
---|---|---|
committer | Alexander Andreev <[email protected]> | 2019-07-13 19:51:20 +0100 |
commit | 22b863c53401971200ed0d94a6f4d9389891c608 (patch) | |
tree | 7ea7d4cbe5e701844bd2ea74610f6659877639c3 /crates/ra_hir | |
parent | 1f0e9c149f97eba98a34215a043b81b11f962298 (diff) |
Fixed comments
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/nameres/collector.rs | 4 |
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(); |