Skip to main content

Crate rustc_incremental

Crate rustc_incremental 

Source
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 in persist::clean which 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.

Functionsยง

provide