mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 02:53:43 +00:00
- Create hir_crate_items query which traverses tcx.hir_crate(()).owners to return a hir::ModuleItems - use tcx.hir_crate_items in tcx.hir().items() to return an iterator of hir::ItemId - add par_items(impl Fn(hir::ItemId)) to traverse all items in parallel Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
For more information about how rustc works, see the rustc dev guide.