Module rustc_query_system::query::plumbing
source ยท Expand description
The implementation of the query system itself. This defines the macros that generate the actual methods on tcx which find and execute the provider, manage the caches, and so forth.
Structsยง
- JobOwner ๐A type representing the responsibility to execute the job in the
job
field. This will poison the relevant query if dropped.
Enumsยง
- QueryResult ๐Indicates the state of a query for a given key in a query map.
Functionsยง
- cycle_error ๐
- ensure_must_run ๐Ensure that either this query has all green inputs or been executed. Executing
query::ensure(D)
is considered a read of the dep-nodeD
. Returns true if the query should still run. - execute_job ๐
- execute_job_incr ๐
- execute_job_non_incr ๐
- handle_cycle_error ๐
- mk_cycle ๐
- try_execute_query ๐
- Checks if the query is already computed and in the cache. It returns the shard index and a lock guard to the shard, which will be used if the query is not in the cache and we need to compute it.
- wait_for_query ๐