Skip to main content

QueryArenas

Struct QueryArenas 

Source
pub struct QueryArenas<'tcx> {
Show 53 fields pub registered_tools: TypedArena<IndexSet<Ident, FxBuildHasher>>, pub hir_crate: TypedArena<Crate<'tcx>>, pub hir_crate_items: TypedArena<ModuleItems>, pub hir_module_items: TypedArena<ModuleItems>, pub unsizing_params_for_adt: TypedArena<DenseBitSet<u32>>, pub generics_of: TypedArena<Generics>, pub native_libraries: TypedArena<Vec<NativeLib>>, pub shallow_lint_levels_on: TypedArena<ShallowLintLevelMap>, pub lint_expectations: TypedArena<Vec<(LintExpectationId, LintExpectation)>>, pub lints_that_dont_need_to_run: TypedArena<UnordSet<LintId>>, pub params_in_repr: TypedArena<DenseBitSet<u32>>, pub mir_keys: TypedArena<IndexSet<LocalDefId, FxBuildHasher>>, pub closure_saved_names_of_captured_variables: TypedArena<IndexVec<FieldIdx, Symbol>>, pub mir_coroutine_witnesses: TypedArena<CoroutineLayout<'tcx>>, pub coverage_ids_info: TypedArena<CoverageIdsInfo>, pub wasm_import_module_map: TypedArena<UnordMap<DefId, String>>, pub trait_def: TypedArena<TraitDef>, pub crate_variances: TypedArena<CrateVariancesMap<'tcx>>, pub inferred_outlives_crate: TypedArena<CratePredicatesMap<'tcx>>, pub associated_items: TypedArena<AssocItems>, pub impl_item_implementor_ids: TypedArena<UnordMap<DefId, DefId>>, pub associated_types_for_impl_traits_in_trait_or_impl: TypedArena<UnordMap<DefId, Vec<DefId>>>, pub check_liveness: TypedArena<DenseBitSet<FieldIdx>>, pub live_symbols_and_ignored_derived_traits: TypedArena<Result<(UnordSet<LocalDefId>, UnordMap<LocalDefId, IndexSet<DefId, FxBuildHasher>>), ErrorGuaranteed>>, pub mir_callgraph_cyclic: TypedArena<Option<UnordSet<LocalDefId>>>, pub reachable_set: TypedArena<UnordSet<LocalDefId>>, pub mir_shims: TypedArena<Body<'tcx>>, pub codegen_fn_attrs: TypedArena<CodegenFnAttrs>, pub rendered_const: TypedArena<String>, pub trait_impls_of: TypedArena<TraitImpls>, pub dependency_formats: TypedArena<Arc<IndexMap<CrateType, IndexVec<CrateNum, Linkage>, FxBuildHasher>>>, pub reachable_non_generics: TypedArena<UnordMap<DefId, SymbolExportInfo>>, pub upstream_monomorphizations: TypedArena<UnordMap<DefId, UnordMap<&'tcx RawList<(), GenericArg<'tcx>>, CrateNum>>>, pub foreign_modules: TypedArena<IndexMap<DefId, ForeignModule, FxBuildHasher>>, pub extra_filename: TypedArena<String>, pub crate_extern_paths: TypedArena<Vec<PathBuf>>, pub resolve_bound_vars: TypedArena<ResolveBoundVars<'tcx>>, pub lib_features: TypedArena<LibFeatures>, pub stability_implications: TypedArena<UnordMap<Symbol, Symbol>>, pub get_lang_items: TypedArena<LanguageItems>, pub all_diagnostic_items: TypedArena<DiagnosticItems>, pub diagnostic_items: TypedArena<DiagnosticItems>, pub visible_parent_map: TypedArena<UnordMap<DefId, DefId>>, pub trimmed_def_paths: TypedArena<UnordMap<DefId, Symbol>>, pub used_crate_source: TypedArena<Arc<CrateSource>>, pub debugger_visualizers: TypedArena<Vec<DebuggerVisualizerFile>>, pub output_filenames: TypedArena<Arc<OutputFilenames>>, pub rust_target_features: TypedArena<UnordMap<String, Stability>>, pub implied_target_features: TypedArena<Vec<Symbol>>, pub diagnostic_hir_wf_check: TypedArena<ObligationCause<'tcx>>, pub global_backend_features: TypedArena<Vec<String>>, pub skip_move_check_fns: TypedArena<IndexSet<DefId, FxBuildHasher>>, pub externally_implementable_items: TypedArena<IndexMap<DefId, (EiiDecl, IndexMap<DefId, EiiImpl, FxBuildHasher>), FxBuildHasher>>,
}
Expand description

Holds per-query arenas for queries with the arena_cache modifier.

Fields§

§registered_tools: TypedArena<IndexSet<Ident, FxBuildHasher>>§hir_crate: TypedArena<Crate<'tcx>>§hir_crate_items: TypedArena<ModuleItems>§hir_module_items: TypedArena<ModuleItems>§unsizing_params_for_adt: TypedArena<DenseBitSet<u32>>§generics_of: TypedArena<Generics>§native_libraries: TypedArena<Vec<NativeLib>>§shallow_lint_levels_on: TypedArena<ShallowLintLevelMap>§lint_expectations: TypedArena<Vec<(LintExpectationId, LintExpectation)>>§lints_that_dont_need_to_run: TypedArena<UnordSet<LintId>>§params_in_repr: TypedArena<DenseBitSet<u32>>§mir_keys: TypedArena<IndexSet<LocalDefId, FxBuildHasher>>§closure_saved_names_of_captured_variables: TypedArena<IndexVec<FieldIdx, Symbol>>§mir_coroutine_witnesses: TypedArena<CoroutineLayout<'tcx>>§coverage_ids_info: TypedArena<CoverageIdsInfo>§wasm_import_module_map: TypedArena<UnordMap<DefId, String>>§trait_def: TypedArena<TraitDef>§crate_variances: TypedArena<CrateVariancesMap<'tcx>>§inferred_outlives_crate: TypedArena<CratePredicatesMap<'tcx>>§associated_items: TypedArena<AssocItems>§impl_item_implementor_ids: TypedArena<UnordMap<DefId, DefId>>§associated_types_for_impl_traits_in_trait_or_impl: TypedArena<UnordMap<DefId, Vec<DefId>>>§check_liveness: TypedArena<DenseBitSet<FieldIdx>>§live_symbols_and_ignored_derived_traits: TypedArena<Result<(UnordSet<LocalDefId>, UnordMap<LocalDefId, IndexSet<DefId, FxBuildHasher>>), ErrorGuaranteed>>§mir_callgraph_cyclic: TypedArena<Option<UnordSet<LocalDefId>>>§reachable_set: TypedArena<UnordSet<LocalDefId>>§mir_shims: TypedArena<Body<'tcx>>§codegen_fn_attrs: TypedArena<CodegenFnAttrs>§rendered_const: TypedArena<String>§trait_impls_of: TypedArena<TraitImpls>§dependency_formats: TypedArena<Arc<IndexMap<CrateType, IndexVec<CrateNum, Linkage>, FxBuildHasher>>>§reachable_non_generics: TypedArena<UnordMap<DefId, SymbolExportInfo>>§upstream_monomorphizations: TypedArena<UnordMap<DefId, UnordMap<&'tcx RawList<(), GenericArg<'tcx>>, CrateNum>>>§foreign_modules: TypedArena<IndexMap<DefId, ForeignModule, FxBuildHasher>>§extra_filename: TypedArena<String>§crate_extern_paths: TypedArena<Vec<PathBuf>>§resolve_bound_vars: TypedArena<ResolveBoundVars<'tcx>>§lib_features: TypedArena<LibFeatures>§stability_implications: TypedArena<UnordMap<Symbol, Symbol>>§get_lang_items: TypedArena<LanguageItems>§all_diagnostic_items: TypedArena<DiagnosticItems>§diagnostic_items: TypedArena<DiagnosticItems>§visible_parent_map: TypedArena<UnordMap<DefId, DefId>>§trimmed_def_paths: TypedArena<UnordMap<DefId, Symbol>>§used_crate_source: TypedArena<Arc<CrateSource>>§debugger_visualizers: TypedArena<Vec<DebuggerVisualizerFile>>§output_filenames: TypedArena<Arc<OutputFilenames>>§rust_target_features: TypedArena<UnordMap<String, Stability>>§implied_target_features: TypedArena<Vec<Symbol>>§diagnostic_hir_wf_check: TypedArena<ObligationCause<'tcx>>§global_backend_features: TypedArena<Vec<String>>§skip_move_check_fns: TypedArena<IndexSet<DefId, FxBuildHasher>>§externally_implementable_items: TypedArena<IndexMap<DefId, (EiiDecl, IndexMap<DefId, EiiImpl, FxBuildHasher>), FxBuildHasher>>

Trait Implementations§

Source§

impl<'tcx> Default for QueryArenas<'tcx>

Source§

fn default() -> QueryArenas<'tcx>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'tcx> DynSend for QueryArenas<'tcx>

§

impl<'tcx> !DynSync for QueryArenas<'tcx>

§

impl<'tcx> !Freeze for QueryArenas<'tcx>

§

impl<'tcx> !RefUnwindSafe for QueryArenas<'tcx>

§

impl<'tcx> Send for QueryArenas<'tcx>

§

impl<'tcx> !Sync for QueryArenas<'tcx>

§

impl<'tcx> Unpin for QueryArenas<'tcx>

§

impl<'tcx> UnsafeUnpin for QueryArenas<'tcx>

§

impl<'tcx> !UnwindSafe for QueryArenas<'tcx>

Blanket Implementations§

Source§

impl<T> Aligned for T

Source§

const ALIGN: Alignment

Alignment of Self.
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, R> CollectAndApply<T, R> for T

Source§

fn collect_and_apply<I, F>(iter: I, f: F) -> R
where I: Iterator<Item = T>, F: FnOnce(&[T]) -> R,

Equivalent to f(&iter.collect::<Vec<_>>()).

Source§

type Output = R

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<P> IntoQueryParam<P> for P

Source§

impl<T> MaybeResult<T> for T

Source§

type Error = !

Source§

fn from(_: Result<T, <T as MaybeResult<T>>::Error>) -> T

Source§

fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<I, T, U> Upcast<I, U> for T
where U: UpcastFrom<I, T>,

Source§

fn upcast(self, interner: I) -> U

Source§

impl<I, T> UpcastFrom<I, T> for T

Source§

fn upcast_from(from: T, _tcx: I) -> T

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 2544 bytes