rustc_incremental::persist::save

Function build_dep_graph

Source
pub(crate) fn build_dep_graph(
    sess: &Session,
    prev_graph: Arc<SerializedDepGraph>,
    prev_work_products: WorkProductMap,
) -> Option<DepGraph>
Expand description

Builds the dependency graph.

This function creates the staging dep-graph. When the dep-graph is modified by a query execution, the new dependency information is not kept in memory but directly output to this file. save_dep_graph then finalizes the staging dep-graph and moves it to the permanent dep-graph path