Expand description
Support for serializing the dep-graph and reloading it.
Re-exportsยง
pub use persist::copy_cgu_workproduct_to_incr_comp_cache_dir;pub use persist::finalize_session_directory;pub use persist::in_incr_comp_dir_sess;pub use persist::in_old_incr_comp_dir_sess;pub use persist::load_query_result_cache;pub use persist::save_work_product_index;pub use persist::setup_dep_graph;pub(crate) use rustc_middle::util::Providers;๐
Modulesยง
- assert_
dep_ ๐graph - This pass is only used for the UNIT TESTS and DEBUGGING NEEDS
around dependency graph construction. It serves two purposes; it
will dump graphs in graphviz form to disk, and it searches for
#[rustc_if_this_changed]and#[rustc_then_this_would_need]annotations. These annotations can be used to test whether paths exist in the graph. These checks run after codegen, so they view the the final state of the dependency graph. Note that there are similar assertions found inpersist::cleanwhich check the initial state of the dependency graph, just after it has been loaded from disk. - diagnostics ๐
- persist ๐
- When in incremental mode, this pass dumps out the dependency graph into the given directory. At the same time, it also hashes the various HIR nodes.