Expand description
Code to load the dep-graph from files.
Re-exportsΒ§
use std::io;πuse std::path::PathBuf;πuse std::sync::Arc;πuse rustc_data_structures::unord::UnordMap;πuse rustc_hashes::Hash64;πuse rustc_middle::dep_graph::DepGraph;π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::IncrCompSession;πuse rustc_session::Session;πuse rustc_session::StableCrateId;πuse rustc_span::Symbol;πuse tracing::debug;πuse tracing::warn;πuse super::file_format;πuse crate::diagnostics;πuse crate::persist::file_format::OpenFile;πuse crate::persist::file_format::OpenFileError;πuse super::data::*;πuse super::fs::*;π
EnumsΒ§
- Load
Result π - Represents the result of an attempt to load incremental compilation data.
FunctionsΒ§
- load_
dep_ πgraph - load_
query_ result_ cache - Attempts to load the query result cache from disk
- 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.