diff options
author | Aleksey Kladov <[email protected]> | 2019-12-20 15:47:22 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-20 15:52:02 +0000 |
commit | 7adb53319d963d0a40906a6847124974da1d5183 (patch) | |
tree | a4bb71f92d6492e7826f0c54a44e09cd1647e701 /crates/ra_hir_def/src/nameres/collector.rs | |
parent | e6b1194f2f33722f0cfed32465f778b256162626 (diff) |
Make items private
Diffstat (limited to 'crates/ra_hir_def/src/nameres/collector.rs')
-rw-r--r-- | crates/ra_hir_def/src/nameres/collector.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index 95c499ec9..d62fae8a6 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs | |||
@@ -372,11 +372,7 @@ where | |||
372 | let scope = &item_map[m.local_id].scope; | 372 | let scope = &item_map[m.local_id].scope; |
373 | 373 | ||
374 | // Module scoped macros is included | 374 | // Module scoped macros is included |
375 | let items = scope | 375 | let items = scope.collect_resolutions(); |
376 | .items | ||
377 | .iter() | ||
378 | .map(|(name, res)| (name.clone(), res.clone())) | ||
379 | .collect::<Vec<_>>(); | ||
380 | 376 | ||
381 | self.update(module_id, Some(import_id), &items); | 377 | self.update(module_id, Some(import_id), &items); |
382 | } else { | 378 | } else { |
@@ -386,11 +382,7 @@ where | |||
386 | let scope = &self.def_map[m.local_id].scope; | 382 | let scope = &self.def_map[m.local_id].scope; |
387 | 383 | ||
388 | // Module scoped macros is included | 384 | // Module scoped macros is included |
389 | let items = scope | 385 | let items = scope.collect_resolutions(); |
390 | .items | ||
391 | .iter() | ||
392 | .map(|(name, res)| (name.clone(), res.clone())) | ||
393 | .collect::<Vec<_>>(); | ||
394 | 386 | ||
395 | self.update(module_id, Some(import_id), &items); | 387 | self.update(module_id, Some(import_id), &items); |
396 | // record the glob import in case we add further items | 388 | // record the glob import in case we add further items |