mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 21:16:27 +03:00
369c801eaf
- Make the enum non-public - Replace the generic `<T>` with concrete fields - Rename variant `LoadDepGraph` to `IoError`
23 lines
650 B
Rust
23 lines
650 B
Rust
//! Support for serializing the dep-graph and reloading it.
|
|
|
|
// tidy-alphabetical-start
|
|
#![deny(missing_docs)]
|
|
#![feature(file_buffered)]
|
|
// tidy-alphabetical-end
|
|
|
|
mod assert_dep_graph;
|
|
mod errors;
|
|
mod persist;
|
|
|
|
pub use persist::{
|
|
copy_cgu_workproduct_to_incr_comp_cache_dir, finalize_session_directory, in_incr_comp_dir,
|
|
in_incr_comp_dir_sess, load_query_result_cache, save_work_product_index, setup_dep_graph,
|
|
};
|
|
use rustc_middle::util::Providers;
|
|
|
|
#[allow(missing_docs)]
|
|
pub fn provide(providers: &mut Providers) {
|
|
providers.hooks.save_dep_graph =
|
|
|tcx| tcx.sess.time("serialize_dep_graph", || persist::save_dep_graph(tcx));
|
|
}
|