Rollup merge of #138150 - nnethercote:streamline-intravisit-visit_id, r=oli-obk
Streamline HIR intravisit `visit_id` calls for items A small clean up.
This commit is contained in:
commit
b772fa6165
5 changed files with 13 additions and 35 deletions
|
@ -1356,7 +1356,7 @@ impl<'hir> Visitor<'hir> for ItemCollector<'hir> {
|
|||
self.submodules.push(item.owner_id);
|
||||
// A module collector does not recurse inside nested modules.
|
||||
if self.crate_collector {
|
||||
intravisit::walk_mod(self, module, item.hir_id());
|
||||
intravisit::walk_mod(self, module);
|
||||
}
|
||||
} else {
|
||||
intravisit::walk_item(self, item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue