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::in_incr_comp_dir;
pub use fs::in_incr_comp_dir_sess;
pub use load::load_query_result_cache;
pub use load::setup_dep_graph;
pub use load::LoadResult;
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;
Modulesยง
- data ๐The data that we will serialize and deserialize.
- dirty_clean ๐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: - file_format ๐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 load the dep-graph from files.
- save ๐
- work_product ๐Functions for saving and removing intermediate work products.