[][src]Trait rustc_query_system::dep_graph::DepContext

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

Associated Types

type DepKind: DepKind

type StableHashingContext

Loading content...

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>

Load diagnostics associated to the node in the previous session.

fn store_diagnostics(
    &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>
)

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

fn profiler(&self) -> &SelfProfilerRef

Access the profiler.

Loading content...

Implementors

Loading content...