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

pub trait QueryContext: DepContext {
    type Query: Clone + HashStable<Self::StableHashingContext>;
    pub fn incremental_verify_ich(&self) -> bool;
pub fn verbose(&self) -> bool;
pub fn def_path_str(&self, def_id: DefId) -> String;
pub fn dep_graph(&self) -> &DepGraph<Self::DepKind>;
pub fn current_query_job(&self) -> Option<QueryJobId<Self::DepKind>>;
pub fn try_collect_active_jobs(
        &self
    ) -> Option<FxHashMap<QueryJobId<Self::DepKind>, QueryJobInfo<Self::DepKind, Self::Query>>>;
pub fn start_query<R>(
        &self,
        token: QueryJobId<Self::DepKind>,
        diagnostics: Option<&Lock<ThinVec<Diagnostic>>>,
        compute: impl FnOnce(Self) -> R
    ) -> R; }

Associated Types

type Query: Clone + HashStable<Self::StableHashingContext>[src]

Loading content...

Required methods

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

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

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

Get string representation from DefPath.

pub fn dep_graph(&self) -> &DepGraph<Self::DepKind>[src]

Access the DepGraph.

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

Get the query information from the TLS context.

pub fn try_collect_active_jobs(
    &self
) -> Option<FxHashMap<QueryJobId<Self::DepKind>, QueryJobInfo<Self::DepKind, Self::Query>>>
[src]

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

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...