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

@ -255,9 +255,9 @@ impl<'v> hir_visit::Visitor<'v> for StatCollector<'v> {
hir_visit::walk_body(self, b);
}
fn visit_mod(&mut self, m: &'v hir::Mod<'v>, _s: Span, n: HirId) {
fn visit_mod(&mut self, m: &'v hir::Mod<'v>, _s: Span, _n: HirId) {
self.record("Mod", None, m);
hir_visit::walk_mod(self, m, n)
hir_visit::walk_mod(self, m)
}
fn visit_foreign_item(&mut self, i: &'v hir::ForeignItem<'v>) {