Module rustc_incremental::persist
source · [−]Expand description
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.
Re-exports
pub use fs::finalize_session_directory;
pub use fs::garbage_collect_session_directories;
pub use fs::in_incr_comp_dir;
pub use fs::in_incr_comp_dir_sess;
pub use fs::prepare_session_directory;
pub use load::load_query_result_cache;
pub use load::LoadResult;
pub use load::load_dep_graph;
pub use load::DepGraphFuture;
pub use save::build_dep_graph;
pub use save::save_dep_graph;
pub use save::save_work_product_index;
pub use work_product::copy_cgu_workproduct_to_incr_comp_cache_dir;
pub use work_product::delete_workproduct_files;
Modules
data 🔒
The data that we will serialize and deserialize.
Debugging code to test fingerprints computed for query results. For each node marked with
#[rustc_clean]
we will compare the fingerprint from the current and from the previous
compilation session as appropriate:This module defines a generic file format that allows to check if a given
file generated by incremental compilation was generated by a compatible
compiler version. This file format is used for the on-disk version of the
dependency graph and the exported metadata hashes.
fs 🔒
This module manages how the incremental compilation cache is represented in
the file system.
load 🔒
Code to save/load the dep-graph from files.
save 🔒
Functions for saving and removing intermediate work products.