[−][src]Trait rustc_query_system::query::QueryContext
Associated Types
type Query: Clone + HashStable<Self::StableHashingContext>[src]
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]
&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[src]
&self,
token: QueryJobId<Self::DepKind>,
diagnostics: Option<&Lock<ThinVec<Diagnostic>>>,
compute: impl FnOnce(Self) -> R
) -> R
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.