Skip to main content

Module query

Module query 

Source

Re-exportsΒ§

pub use self::caches::DefIdCache;
pub use self::caches::DefaultCache;
pub use self::caches::QueryCache;
pub use self::caches::SingleCache;
pub use self::calls::TyCtxtAt;
pub use self::calls::TyCtxtEnsureDone;
pub use self::calls::TyCtxtEnsureOk;
pub use self::calls::TyCtxtEnsureResult;
pub use self::into_query_key::IntoQueryKey;
pub use self::job::ActiveKeyStatus;
pub use self::job::QueryCycle;
pub use self::job::QueryJob;
pub use self::job::QueryJobId;
pub use self::job::QueryLatch;
pub use self::job::QueryStackFrame;
pub use self::job::QueryState;
pub use self::job::QueryWaiter;
pub use self::keys::LocalCrate;
pub use self::keys::QueryKey;
pub use self::system::QueryMode;
pub use self::system::QuerySystem;
pub use self::system::QueryVTable;
pub use crate::queries::Providers;

ModulesΒ§

arena_cached πŸ”’
caches πŸ”’
calls πŸ”’
Helper functions that serve as the immediate implementation of tcx.$query(..) and its variations.
erase
To improve compile times and code size for the compiler itself, query values are β€œerased” in some contexts (e.g. inside in-memory cache types), to reduce the number of generic instantiations created during codegen.
into_query_key πŸ”’
job πŸ”’
keys πŸ”’
Defines the set of legal keys that can be used in queries.
modifiers πŸ”’
This contains documentation which is linked from query modifiers used in the rustc_queries! proc macro.
on_disk_cache
query_api πŸ”’
system πŸ”’

StructsΒ§

VecCache
In-memory cache for queries whose keys are densely-numbered IDs (e.g CrateNum, LocalDefId), and can therefore be used as indices into a dense vector of cached values.