[−][src]Struct rustc_middle::ty::context::GlobalCtxt
Fields
arena: &'tcx WorkerLocal<Arena<'tcx>>interners: CtxtInterners<'tcx>cstore: Box<CrateStoreDyn>sess: &'tcx Sessionlint_store: Lrc<dyn Any + Sync + Send>This only ever stores a LintStore but we don't want a dependency on that type here.
FIXME(Centril): consider dyn LintStoreMarker once
we can upcast to Any for some additional type safety.
dep_graph: DepGraphprof: SelfProfilerReftypes: CommonTypes<'tcx>Common types, pre-interned for your convenience.
lifetimes: CommonLifetimes<'tcx>Common lifetimes, pre-interned for your convenience.
consts: CommonConsts<'tcx>Common consts, pre-interned for your convenience.
visibilities: FxHashMap<LocalDefId, Visibility>Visibilities produced by resolver.
extern_crate_map: FxHashMap<LocalDefId, CrateNum>Resolutions of extern crate items produced by resolver.
trait_map: FxHashMap<LocalDefId, FxHashMap<ItemLocalId, StableVec<TraitCandidate>>>Map indicating what traits are in scope for places where this is relevant; generated by resolve.
export_map: ExportMap<LocalDefId>Export map produced by name resolution.
untracked_crate: &'tcx Crate<'tcx>definitions: &'tcx Definitionsdef_path_hash_to_def_id: Option<UnhashMap<DefPathHash, DefId>>A map from DefPathHash -> DefId. Includes DefIds from the local crate
as well as all upstream crates. Only populated in incremental mode.
queries: Queries<'tcx>maybe_unused_trait_imports: FxHashSet<LocalDefId>maybe_unused_extern_crates: Vec<(LocalDefId, Span)>glob_map: FxHashMap<LocalDefId, FxHashSet<Symbol>>A map of glob use to a set of names it actually imports. Currently only used in save-analysis.
extern_prelude: FxHashMap<Symbol, bool>Extern prelude entries. The value is true if the entry was introduced
via extern crate item and not --extern option or compiler built-in.
ty_rcache: Lock<FxHashMap<CReaderCacheKey, Ty<'tcx>>>pred_rcache: Lock<FxHashMap<CReaderCacheKey, Predicate<'tcx>>>selection_cache: SelectionCache<'tcx>Caches the results of trait selection. This cache is used for things that do not have to do with the parameters in scope.
evaluation_cache: EvaluationCache<'tcx>Caches the results of trait evaluation. This cache is used
for things that do not have to do with the parameters in scope.
Merge this with selection_cache?
crate_name: SymbolThe definite name of the current crate after taking into account attributes, commandline parameters, etc.
data_layout: TargetDataLayoutData layout specification for the current target.
stability_interner: ShardedHashMap<&'tcx Stability, ()>#[stable] and #[unstable] attributes
const_stability_interner: ShardedHashMap<&'tcx ConstStability, ()>#[rustc_const_stable] and #[rustc_const_unstable] attributes
allocation_interner: ShardedHashMap<&'tcx Allocation, ()>Stores the value of constants (and deduplicates the actual memory)
alloc_map: Lock<AllocMap<'tcx>>Stores memory for globals (statics/consts).
layout_interner: ShardedHashMap<&'tcx Layout, ()>output_filenames: Arc<OutputFilenames>Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for GlobalCtxt<'tcx>
impl<'tcx> !Send for GlobalCtxt<'tcx>
impl<'tcx> !Sync for GlobalCtxt<'tcx>
impl<'tcx> Unpin for GlobalCtxt<'tcx>
impl<'tcx> !UnwindSafe for GlobalCtxt<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeResult<T> for T[src]
type Error = !
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.