[−][src]Trait rustc_middle::dep_graph::dep_node::DepContext
Associated Types
type DepKind: DepKind
type StableHashingContext
Required methods
fn create_stable_hashing_context(&self) -> Self::StableHashingContext
Create a hashing context for hashing new results.
fn debug_dep_tasks(&self) -> bool
fn debug_dep_node(&self) -> 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 has_errors_or_delayed_span_bugs(&self) -> bool
Return whether the current session is tainted by errors.
fn diagnostic(&self) -> &Handler
Return the diagnostic handler.
fn try_load_from_on_disk_cache(&self, dep_node: &DepNode<Self::DepKind>)
Load data from the on-disk cache.
fn load_diagnostics(
&self,
prev_dep_node_index: SerializedDepNodeIndex
) -> Vec<Diagnostic>
&self,
prev_dep_node_index: SerializedDepNodeIndex
) -> Vec<Diagnostic>
Load diagnostics associated to the node in the previous session.
fn store_diagnostics(
&self,
dep_node_index: DepNodeIndex,
diagnostics: ThinVec<Diagnostic>
)
&self,
dep_node_index: DepNodeIndex,
diagnostics: ThinVec<Diagnostic>
)
Register diagnostics for the given node, for use in next session.
fn store_diagnostics_for_anon_node(
&self,
dep_node_index: DepNodeIndex,
diagnostics: ThinVec<Diagnostic>
)
&self,
dep_node_index: DepNodeIndex,
diagnostics: ThinVec<Diagnostic>
)
Register diagnostics for the given node, for use in next session.
fn profiler(&self) -> &SelfProfilerRef
Access the profiler.
Implementors
impl<'tcx> DepContext for TyCtxt<'tcx>[src]
type DepKind = DepKind
type StableHashingContext = StableHashingContext<'tcx>
fn create_stable_hashing_context(&self) -> Self::StableHashingContext[src]
fn debug_dep_tasks(&self) -> bool[src]
fn debug_dep_node(&self) -> bool[src]
fn try_force_from_dep_node(&self, dep_node: &DepNode) -> bool[src]
fn has_errors_or_delayed_span_bugs(&self) -> bool[src]
fn diagnostic(&self) -> &Handler[src]
fn try_load_from_on_disk_cache(&self, dep_node: &DepNode)[src]
fn load_diagnostics(
&self,
prev_dep_node_index: SerializedDepNodeIndex
) -> Vec<Diagnostic>[src]
&self,
prev_dep_node_index: SerializedDepNodeIndex
) -> Vec<Diagnostic>
fn store_diagnostics(
&self,
dep_node_index: DepNodeIndex,
diagnostics: ThinVec<Diagnostic>
)[src]
&self,
dep_node_index: DepNodeIndex,
diagnostics: ThinVec<Diagnostic>
)
fn store_diagnostics_for_anon_node(
&self,
dep_node_index: DepNodeIndex,
diagnostics: ThinVec<Diagnostic>
)[src]
&self,
dep_node_index: DepNodeIndex,
diagnostics: ThinVec<Diagnostic>
)