Trait rustc_query_system::query::QueryContext[−][src]

pub trait QueryContext: HasDepContext {
    fn def_path_str(&self, def_id: DefId) -> String;
fn current_query_job(&self) -> Option<QueryJobId<Self::DepKind>>;
fn try_collect_active_jobs(&self) -> Option<QueryMap<Self::DepKind>>;
fn try_load_from_on_disk_cache(&self, dep_node: &DepNode<Self::DepKind>);
fn try_force_from_dep_node(&self, dep_node: &DepNode<Self::DepKind>) -> bool;
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 start_query<R>(
        &self,
        token: QueryJobId<Self::DepKind>,
        diagnostics: Option<&Lock<ThinVec<Diagnostic>>>,
        compute: impl FnOnce() -> R
    ) -> R; }

Required methods

fn def_path_str(&self, def_id: DefId) -> String[src]

Expand description

Get string representation from DefPath.

fn current_query_job(&self) -> Option<QueryJobId<Self::DepKind>>[src]

Expand description

Get the query information from the TLS context.

fn try_collect_active_jobs(&self) -> Option<QueryMap<Self::DepKind>>[src]

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

Expand description

Load data from the on-disk cache.

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

Expand description

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

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

Expand description

Load diagnostics associated to the node in the previous session.

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

Expand description

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>
)
[src]

Expand description

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

fn start_query<R>(
    &self,
    token: QueryJobId<Self::DepKind>,
    diagnostics: Option<&Lock<ThinVec<Diagnostic>>>,
    compute: impl FnOnce() -> R
) -> R
[src]

Expand description

Executes a job by changing the ImplicitCtxt to point to the new query job while it executes. It returns the diagnostics captured during execution and the actual result.

Loading content...

Implementors

Loading content...