Expand description
Code to load the dep-graph from files.
Re-exportsΒ§
use std::sync::Arc;πuse rustc_hashes::Hash64;πuse rustc_middle::dep_graph::DepGraph;πuse rustc_middle::dep_graph::IncrCompSession;πuse rustc_middle::dep_graph::SerializedDepGraph;πuse rustc_middle::dep_graph::WorkProductMap;πuse rustc_middle::query::on_disk_cache::OnDiskCache;πuse rustc_serialize::opaque::FileEncoder;πuse rustc_serialize::opaque::MemDecoder;πuse rustc_serialize::Decodable;πuse rustc_serialize::Encodable;πuse rustc_session::config::IncrementalStateAssertion;πuse rustc_session::Session;πuse rustc_session::StableCrateId;πuse rustc_span::Symbol;πuse tracing::debug;πuse tracing::warn;πuse super::file_format;πuse super::work_product::SerializedWorkProduct;πuse crate::diagnostics;πuse crate::persist::file_format::OpenFile;πuse crate::persist::file_format::OpenFileError;πuse super::fs::*;π
FunctionsΒ§
- load_
dep_ πgraph - Load the old dep graph and work product index.
- load_
query_ result_ cache - Attempts to load the query result cache from disk
- load_
work_ πproduct_ index - maybe_
assert_ πincr_ state - Emits a fatal error if the assertion in
-Zassert-incr-statedoesnβt match the outcome of trying to load previous-session state. - setup_
dep_ graph - Loads the previous sessionβs dependency graph from disk if possible, and sets up streaming output for the current sessionβs dep graph data into an incremental session directory.