Function rustc_typeck::dep_graph::visit_all_item_likes_in_krate [] [src]

pub fn visit_all_item_likes_in_krate<'tcx, V, F>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
                                                 dep_node_fn: F,
                                                 visitor: &mut V) where F: FnMut(DefId) -> DepNode<DefId>, V: ItemLikeVisitor<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private)

Visit all the items in the krate in some order. When visiting a particular item, first create a dep-node by calling dep_node_fn and push that onto the dep-graph stack of tasks, and also create a read edge from the corresponding AST node. This is used in compiler passes to automatically record the item that they are working on.