[−][src]Trait rustc_middle::dep_graph::dep_node::DepContext

pub trait DepContext: Copy {
    type DepKind: DepKind;
    type StableHashingContext;
    pub fn create_stable_hashing_context(&self) -> Self::StableHashingContext;
pub fn debug_dep_tasks(&self) -> bool;
pub fn debug_dep_node(&self) -> bool;
pub fn try_force_from_dep_node(
        &self,
        dep_node: &DepNode<Self::DepKind>
    ) -> bool;
pub fn has_errors_or_delayed_span_bugs(&self) -> bool;
pub fn diagnostic(&self) -> &Handler;
pub fn try_load_from_on_disk_cache(&self, dep_node: &DepNode<Self::DepKind>);
pub fn load_diagnostics(
        &self,
        prev_dep_node_index: SerializedDepNodeIndex
    ) -> Vec<Diagnostic>;
pub fn store_diagnostics(
        &self,
        dep_node_index: DepNodeIndex,
        diagnostics: ThinVec<Diagnostic>
    );
pub fn store_diagnostics_for_anon_node(
        &self,
        dep_node_index: DepNodeIndex,
        diagnostics: ThinVec<Diagnostic>
    );
pub fn profiler(&self) -> &SelfProfilerRef; }

Associated Types

type DepKind: DepKind[src]

type StableHashingContext[src]

Loading content...

Required methods

pub fn create_stable_hashing_context(&self) -> Self::StableHashingContext[src]

Create a hashing context for hashing new results.

pub fn debug_dep_tasks(&self) -> bool[src]

pub fn debug_dep_node(&self) -> bool[src]

pub fn try_force_from_dep_node(&self, dep_node: &DepNode<Self::DepKind>) -> bool[src]

Try to force a dep node to execute and see if it's green.

pub fn has_errors_or_delayed_span_bugs(&self) -> bool[src]

Return whether the current session is tainted by errors.

pub fn diagnostic(&self) -> &Handler[src]

Return the diagnostic handler.

pub fn try_load_from_on_disk_cache(&self, dep_node: &DepNode<Self::DepKind>)[src]

Load data from the on-disk cache.

pub fn load_diagnostics(
    &self,
    prev_dep_node_index: SerializedDepNodeIndex
) -> Vec<Diagnostic>
[src]

Load diagnostics associated to the node in the previous session.

pub fn store_diagnostics(
    &self,
    dep_node_index: DepNodeIndex,
    diagnostics: ThinVec<Diagnostic>
)
[src]

Register diagnostics for the given node, for use in next session.

pub fn store_diagnostics_for_anon_node(
    &self,
    dep_node_index: DepNodeIndex,
    diagnostics: ThinVec<Diagnostic>
)
[src]

Register diagnostics for the given node, for use in next session.

pub fn profiler(&self) -> &SelfProfilerRef[src]

Access the profiler.

Loading content...

Implementors

impl<'tcx> DepContext for TyCtxt<'tcx>[src]

type DepKind = DepKind

type StableHashingContext = StableHashingContext<'tcx>

Loading content...