1
Fork 0

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:
Matthias Krüger 2025-03-07 19:15:36 +01:00 committed by GitHub
commit b772fa6165
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 35 deletions

View file

@ -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)