mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-11 14:48:41 +00:00

ast: Generalize item kind visiting And avoid duplicating logic for visiting `Item`s with different kinds (regular, associated, foreign). The diff is better viewed with whitespace ignored.