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.