rust/compiler/rustc_middle/src/hir
Nicholas Nethercote 872ac73f59 Move visit_id calls.
In `walk_item`, we call `visit_id` on every item kind. For most of them
we do it directly in `walk_item`. But for `ItemKind::Mod`,
`ItemKind::Enum`, and `ItemKind::Use` we instead do it in the `walk_*`
function called (via the `visit_*` function) from `walk_item`.

I can see no reason for this inconsistency, so this commit makes those
three cases like all the other cases, moving the `visit_id` calls into
`walk_item`. This also avoids the need for a few `HirId` arguments.
2025-03-07 19:35:41 +11:00
..
map.rs Move visit_id calls. 2025-03-07 19:35:41 +11:00
mod.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
nested_filter.rs Overhaul the intravisit::Map trait. 2025-02-17 13:21:35 +11:00
place.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00