Trait rustc_middle::dep_graph::DepContext [−][src]
pub trait DepContext: Copy {
type DepKind: DepKind;
fn create_stable_hashing_context(&self) -> StableHashingContext<'_>;
fn dep_graph(&self) -> &DepGraph<Self::DepKind>;
fn profiler(&self) -> &SelfProfilerRef;
fn sess(&self) -> &Session;
fn is_eval_always(&self, kind: Self::DepKind) -> bool;
fn fingerprint_style(&self, kind: Self::DepKind) -> FingerprintStyle;
fn try_force_from_dep_node(&self, dep_node: DepNode<Self::DepKind>) -> bool;
fn try_load_from_on_disk_cache(&self, dep_node: DepNode<Self::DepKind>);
}
Associated Types
Required methods
fn create_stable_hashing_context(&self) -> StableHashingContext<'_>
fn create_stable_hashing_context(&self) -> StableHashingContext<'_>
Create a hashing context for hashing new results.
fn profiler(&self) -> &SelfProfilerRef
fn profiler(&self) -> &SelfProfilerRef
Access the profiler.
fn is_eval_always(&self, kind: Self::DepKind) -> bool
fn is_eval_always(&self, kind: Self::DepKind) -> bool
Return whether this kind always require evaluation.
fn fingerprint_style(&self, kind: Self::DepKind) -> FingerprintStyle
fn try_force_from_dep_node(&self, dep_node: DepNode<Self::DepKind>) -> bool
fn try_force_from_dep_node(&self, dep_node: DepNode<Self::DepKind>) -> bool
Try to force a dep node to execute and see if it’s green.
fn try_load_from_on_disk_cache(&self, dep_node: DepNode<Self::DepKind>)
fn try_load_from_on_disk_cache(&self, dep_node: DepNode<Self::DepKind>)
Load data from the on-disk cache.