Struct rustc_query_impl::ty::query::QueryCaches[−][src]

pub struct QueryCaches<'tcx> {
Show 264 fields pub trigger_delay_span_bug: QueryCacheStore<DefaultCache<DefId, ()>>, pub resolutions: QueryCacheStore<DefaultCache<(), &'tcx ResolverOutputs>>, pub source_span: QueryCacheStore<DefaultCache<LocalDefId, Span>>, pub hir_crate: QueryCacheStore<DefaultCache<(), &'tcx Crate<'tcx>>>, pub hir_module_items: QueryCacheStore<ArenaCache<'tcx, LocalDefId, ModuleItems>>, pub hir_owner: QueryCacheStore<DefaultCache<LocalDefId, Option<Owner<'tcx>>>>, pub hir_owner_parent: QueryCacheStore<DefaultCache<LocalDefId, HirId>>, pub hir_owner_nodes: QueryCacheStore<DefaultCache<LocalDefId, Option<&'tcx OwnerNodes<'tcx>>>>, pub hir_attrs: QueryCacheStore<DefaultCache<LocalDefId, &'tcx AttributeMap<'tcx>>>, pub opt_const_param_of: QueryCacheStore<DefaultCache<LocalDefId, Option<DefId>>>, pub const_param_default: QueryCacheStore<DefaultCache<DefId, &'tcx Const<'tcx>>>, pub default_anon_const_substs: QueryCacheStore<DefaultCache<DefId, &'tcx List<GenericArg<'tcx>>>>, pub type_of: QueryCacheStore<DefaultCache<DefId, &'tcx TyS<'tcx>>>, pub analysis: QueryCacheStore<DefaultCache<(), Result<(), ErrorReported>>>, pub generics_of: QueryCacheStore<ArenaCache<'tcx, DefId, Generics>>, pub predicates_of: QueryCacheStore<DefaultCache<DefId, GenericPredicates<'tcx>>>, pub explicit_item_bounds: QueryCacheStore<DefaultCache<DefId, &'tcx [(Predicate<'tcx>, Span)]>>, pub item_bounds: QueryCacheStore<DefaultCache<DefId, &'tcx List<Predicate<'tcx>>>>, pub native_libraries: QueryCacheStore<DefaultCache<CrateNum, Rc<Vec<NativeLib, Global>>>>, pub lint_levels: QueryCacheStore<ArenaCache<'tcx, (), LintLevelMap>>, pub parent_module_from_def_id: QueryCacheStore<DefaultCache<LocalDefId, LocalDefId>>, pub expn_that_defined: QueryCacheStore<DefaultCache<DefId, ExpnId>>, pub is_panic_runtime: QueryCacheStore<DefaultCache<CrateNum, bool>>, pub thir_body: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, (&'tcx Steal<Thir<'tcx>>, ExprId)>>, pub thir_tree: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, String>>, pub mir_keys: QueryCacheStore<ArenaCache<'tcx, (), HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>, pub mir_const_qualif: QueryCacheStore<DefaultCache<DefId, ConstQualifs>>, pub mir_const_qualif_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), ConstQualifs>>, pub mir_built: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>, pub mir_const: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>, pub thir_abstract_const: QueryCacheStore<DefaultCache<DefId, Result<Option<&'tcx [Node<'tcx>]>, ErrorReported>>>, pub thir_abstract_const_of_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), Result<Option<&'tcx [Node<'tcx>]>, ErrorReported>>>, pub try_unify_abstract_consts: QueryCacheStore<DefaultCache<(Unevaluated<'tcx, ()>, Unevaluated<'tcx, ()>), bool>>, pub mir_drops_elaborated_and_const_checked: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>, pub mir_for_ctfe: QueryCacheStore<DefaultCache<DefId, &'tcx Body<'tcx>>>, pub mir_for_ctfe_of_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), &'tcx Body<'tcx>>>, pub mir_promoted: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, (&'tcx Steal<Body<'tcx>>, &'tcx Steal<IndexVec<Promoted, Body<'tcx>>>)>>, pub symbols_for_closure_captures: QueryCacheStore<DefaultCache<(LocalDefId, DefId), Vec<Symbol, Global>>>, pub optimized_mir: QueryCacheStore<DefaultCache<DefId, &'tcx Body<'tcx>>>, pub coverageinfo: QueryCacheStore<ArenaCache<'tcx, InstanceDef<'tcx>, CoverageInfo>>, pub covered_file_name: QueryCacheStore<ArenaCache<'tcx, DefId, Option<Symbol>>>, pub covered_code_regions: QueryCacheStore<ArenaCache<'tcx, DefId, Vec<&'tcx CodeRegion, Global>>>, pub promoted_mir: QueryCacheStore<DefaultCache<DefId, &'tcx IndexVec<Promoted, Body<'tcx>>>>, pub promoted_mir_of_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), &'tcx IndexVec<Promoted, Body<'tcx>>>>, pub erase_regions_ty: QueryCacheStore<DefaultCache<&'tcx TyS<'tcx>, &'tcx TyS<'tcx>>>, pub wasm_import_module_map: QueryCacheStore<ArenaCache<'tcx, CrateNum, HashMap<DefId, String, BuildHasherDefault<FxHasher>>>>, pub predicates_defined_on: QueryCacheStore<DefaultCache<DefId, GenericPredicates<'tcx>>>, pub trait_explicit_predicates_and_bounds: QueryCacheStore<DefaultCache<LocalDefId, GenericPredicates<'tcx>>>, pub explicit_predicates_of: QueryCacheStore<DefaultCache<DefId, GenericPredicates<'tcx>>>, pub inferred_outlives_of: QueryCacheStore<DefaultCache<DefId, &'tcx [(Predicate<'tcx>, Span)]>>, pub super_predicates_of: QueryCacheStore<DefaultCache<DefId, GenericPredicates<'tcx>>>, pub super_predicates_that_define_assoc_type: QueryCacheStore<DefaultCache<(DefId, Option<Ident>), GenericPredicates<'tcx>>>, pub type_param_predicates: QueryCacheStore<DefaultCache<(DefId, LocalDefId, Ident), GenericPredicates<'tcx>>>, pub trait_def: QueryCacheStore<ArenaCache<'tcx, DefId, TraitDef>>, pub adt_def: QueryCacheStore<DefaultCache<DefId, &'tcx AdtDef>>, pub adt_destructor: QueryCacheStore<DefaultCache<DefId, Option<Destructor>>>, pub adt_sized_constraint: QueryCacheStore<DefaultCache<DefId, AdtSizedConstraint<'tcx>>>, pub adt_dtorck_constraint: QueryCacheStore<DefaultCache<DefId, Result<DtorckConstraint<'tcx>, NoSolution>>>, pub is_const_fn_raw: QueryCacheStore<DefaultCache<DefId, bool>>, pub asyncness: QueryCacheStore<DefaultCache<DefId, IsAsync>>, pub is_promotable_const_fn: QueryCacheStore<DefaultCache<DefId, bool>>, pub is_foreign_item: QueryCacheStore<DefaultCache<DefId, bool>>, pub static_mutability: QueryCacheStore<DefaultCache<DefId, Option<Mutability>>>, pub generator_kind: QueryCacheStore<DefaultCache<DefId, Option<GeneratorKind>>>, pub crate_variances: QueryCacheStore<ArenaCache<'tcx, (), CrateVariancesMap<'tcx>>>, pub variances_of: QueryCacheStore<DefaultCache<DefId, &'tcx [Variance]>>, pub inferred_outlives_crate: QueryCacheStore<ArenaCache<'tcx, (), CratePredicatesMap<'tcx>>>, pub associated_item_def_ids: QueryCacheStore<DefaultCache<DefId, &'tcx [DefId]>>, pub associated_item: QueryCacheStore<ArenaCache<'tcx, DefId, AssocItem>>, pub associated_items: QueryCacheStore<ArenaCache<'tcx, DefId, AssocItems<'tcx>>>, pub impl_trait_ref: QueryCacheStore<DefaultCache<DefId, Option<TraitRef<'tcx>>>>, pub impl_polarity: QueryCacheStore<DefaultCache<DefId, ImplPolarity>>, pub issue33140_self_ty: QueryCacheStore<DefaultCache<DefId, Option<&'tcx TyS<'tcx>>>>, pub inherent_impls: QueryCacheStore<DefaultCache<DefId, &'tcx [DefId]>>, pub unsafety_check_result: QueryCacheStore<DefaultCache<LocalDefId, &'tcx UnsafetyCheckResult>>, pub unsafety_check_result_for_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), &'tcx UnsafetyCheckResult>>, pub thir_check_unsafety: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub thir_check_unsafety_for_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), ()>>, pub unsafe_derive_on_repr_packed: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub fn_sig: QueryCacheStore<DefaultCache<DefId, Binder<'tcx, FnSig<'tcx>>>>, pub lint_mod: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_mod_attrs: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_mod_unstable_api_usage: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_mod_const_bodies: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_mod_loops: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_mod_naked_functions: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_mod_item_types: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_mod_privacy: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_mod_intrinsics: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_mod_liveness: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_mod_impl_wf: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub collect_mod_item_types: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub coerce_unsized_info: QueryCacheStore<DefaultCache<DefId, CoerceUnsizedInfo>>, pub typeck_item_bodies: QueryCacheStore<DefaultCache<(), ()>>, pub typeck: QueryCacheStore<DefaultCache<LocalDefId, &'tcx TypeckResults<'tcx>>>, pub typeck_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), &'tcx TypeckResults<'tcx>>>, pub diagnostic_only_typeck: QueryCacheStore<DefaultCache<LocalDefId, &'tcx TypeckResults<'tcx>>>, pub used_trait_imports: QueryCacheStore<DefaultCache<LocalDefId, &'tcx HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>, pub has_typeck_results: QueryCacheStore<DefaultCache<DefId, bool>>, pub coherent_trait: QueryCacheStore<DefaultCache<DefId, ()>>, pub mir_borrowck: QueryCacheStore<DefaultCache<LocalDefId, &'tcx BorrowCheckResult<'tcx>>>, pub mir_borrowck_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), &'tcx BorrowCheckResult<'tcx>>>, pub crate_inherent_impls: QueryCacheStore<ArenaCache<'tcx, (), CrateInherentImpls>>, pub crate_inherent_impls_overlap_check: QueryCacheStore<DefaultCache<(), ()>>, pub orphan_check_crate: QueryCacheStore<DefaultCache<(), &'tcx [LocalDefId]>>, pub mir_callgraph_reachable: QueryCacheStore<DefaultCache<(Instance<'tcx>, LocalDefId), bool>>, pub mir_inliner_callees: QueryCacheStore<DefaultCache<InstanceDef<'tcx>, &'tcx [(DefId, &'tcx List<GenericArg<'tcx>>)]>>, pub eval_to_allocation_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, GlobalId<'tcx>>, Result<ConstAlloc<'tcx>, ErrorHandled>>>, pub eval_to_const_value_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, GlobalId<'tcx>>, Result<ConstValue<'tcx>, ErrorHandled>>>, pub const_to_valtree: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, ConstAlloc<'tcx>>, Option<ValTree<'tcx>>>>, pub destructure_const: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx Const<'tcx>>, DestructuredConst<'tcx>>>, pub deref_const: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx Const<'tcx>>, &'tcx Const<'tcx>>>, pub const_caller_location: QueryCacheStore<DefaultCache<(Symbol, u32, u32), ConstValue<'tcx>>>, pub lit_to_const: QueryCacheStore<DefaultCache<LitToConstInput<'tcx>, Result<&'tcx Const<'tcx>, LitToConstError>>>, pub check_match: QueryCacheStore<DefaultCache<DefId, ()>>, pub privacy_access_levels: QueryCacheStore<DefaultCache<(), &'tcx AccessLevels<LocalDefId>>>, pub check_private_in_public: QueryCacheStore<DefaultCache<(), ()>>, pub reachable_set: QueryCacheStore<ArenaCache<'tcx, (), HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>, pub region_scope_tree: QueryCacheStore<DefaultCache<DefId, &'tcx ScopeTree>>, pub mir_shims: QueryCacheStore<ArenaCache<'tcx, InstanceDef<'tcx>, Body<'tcx>>>, pub symbol_name: QueryCacheStore<DefaultCache<Instance<'tcx>, SymbolName<'tcx>>>, pub opt_def_kind: QueryCacheStore<DefaultCache<DefId, Option<DefKind>>>, pub def_span: QueryCacheStore<DefaultCache<DefId, Span>>, pub def_ident_span: QueryCacheStore<DefaultCache<DefId, Option<Span>>>, pub lookup_stability: QueryCacheStore<DefaultCache<DefId, Option<&'tcx Stability>>>, pub lookup_const_stability: QueryCacheStore<DefaultCache<DefId, Option<&'tcx ConstStability>>>, pub should_inherit_track_caller: QueryCacheStore<DefaultCache<DefId, bool>>, pub lookup_deprecation_entry: QueryCacheStore<DefaultCache<DefId, Option<DeprecationEntry>>>, pub item_attrs: QueryCacheStore<DefaultCache<DefId, &'tcx [Attribute]>>, pub codegen_fn_attrs: QueryCacheStore<ArenaCache<'tcx, DefId, CodegenFnAttrs>>, pub fn_arg_names: QueryCacheStore<DefaultCache<DefId, &'tcx [Ident]>>, pub rendered_const: QueryCacheStore<DefaultCache<DefId, String>>, pub impl_parent: QueryCacheStore<DefaultCache<DefId, Option<DefId>>>, pub trait_of_item: QueryCacheStore<DefaultCache<DefId, Option<DefId>>>, pub is_ctfe_mir_available: QueryCacheStore<DefaultCache<DefId, bool>>, pub is_mir_available: QueryCacheStore<DefaultCache<DefId, bool>>, pub own_existential_vtable_entries: QueryCacheStore<DefaultCache<Binder<'tcx, ExistentialTraitRef<'tcx>>, &'tcx [DefId]>>, pub vtable_entries: QueryCacheStore<DefaultCache<Binder<'tcx, TraitRef<'tcx>>, &'tcx [VtblEntry<'tcx>]>>, pub vtable_trait_upcasting_coercion_new_vptr_slot: QueryCacheStore<DefaultCache<(&'tcx TyS<'tcx>, &'tcx TyS<'tcx>), Option<usize>>>, pub vtable_allocation: QueryCacheStore<DefaultCache<(&'tcx TyS<'tcx>, Option<Binder<'tcx, ExistentialTraitRef<'tcx>>>), AllocId>>, pub codegen_fulfill_obligation: QueryCacheStore<DefaultCache<(ParamEnv<'tcx>, Binder<'tcx, TraitRef<'tcx>>), Result<ImplSource<'tcx, ()>, ErrorReported>>>, pub all_local_trait_impls: QueryCacheStore<DefaultCache<(), &'tcx BTreeMap<DefId, Vec<LocalDefId, Global>>>>, pub trait_impls_of: QueryCacheStore<ArenaCache<'tcx, DefId, TraitImpls>>, pub specialization_graph_of: QueryCacheStore<ArenaCache<'tcx, DefId, Graph>>, pub object_safety_violations: QueryCacheStore<DefaultCache<DefId, &'tcx [ObjectSafetyViolation]>>, pub param_env: QueryCacheStore<DefaultCache<DefId, ParamEnv<'tcx>>>, pub param_env_reveal_all_normalized: QueryCacheStore<DefaultCache<DefId, ParamEnv<'tcx>>>, pub is_copy_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>, pub is_sized_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>, pub is_freeze_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>, pub is_unpin_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>, pub needs_drop_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>, pub has_significant_drop_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>, pub has_structural_eq_impls: QueryCacheStore<DefaultCache<&'tcx TyS<'tcx>, bool>>, pub adt_drop_tys: QueryCacheStore<DefaultCache<DefId, Result<&'tcx List<&'tcx TyS<'tcx>>, AlwaysRequiresDrop>>>, pub adt_significant_drop_tys: QueryCacheStore<DefaultCache<DefId, Result<&'tcx List<&'tcx TyS<'tcx>>, AlwaysRequiresDrop>>>, pub layout_of: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, Result<TyAndLayout<'tcx, &'tcx TyS<'tcx>>, LayoutError<'tcx>>>>, pub fn_abi_of_fn_ptr: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, (Binder<'tcx, FnSig<'tcx>>, &'tcx List<&'tcx TyS<'tcx>>)>, Result<&'tcx FnAbi<'tcx, &'tcx TyS<'tcx>>, FnAbiError<'tcx>>>>, pub fn_abi_of_instance: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, (Instance<'tcx>, &'tcx List<&'tcx TyS<'tcx>>)>, Result<&'tcx FnAbi<'tcx, &'tcx TyS<'tcx>>, FnAbiError<'tcx>>>>, pub dylib_dependency_formats: QueryCacheStore<DefaultCache<CrateNum, &'tcx [(CrateNum, LinkagePreference)]>>, pub dependency_formats: QueryCacheStore<DefaultCache<(), Rc<Vec<(CrateType, Vec<Linkage, Global>), Global>>>>, pub is_compiler_builtins: QueryCacheStore<DefaultCache<CrateNum, bool>>, pub has_global_allocator: QueryCacheStore<DefaultCache<CrateNum, bool>>, pub has_panic_handler: QueryCacheStore<DefaultCache<CrateNum, bool>>, pub is_profiler_runtime: QueryCacheStore<DefaultCache<CrateNum, bool>>, pub panic_strategy: QueryCacheStore<DefaultCache<CrateNum, PanicStrategy>>, pub panic_in_drop_strategy: QueryCacheStore<DefaultCache<CrateNum, PanicStrategy>>, pub is_no_builtins: QueryCacheStore<DefaultCache<CrateNum, bool>>, pub symbol_mangling_version: QueryCacheStore<DefaultCache<CrateNum, SymbolManglingVersion>>, pub extern_crate: QueryCacheStore<DefaultCache<DefId, Option<&'tcx ExternCrate>>>, pub specializes: QueryCacheStore<DefaultCache<(DefId, DefId), bool>>, pub in_scope_traits_map: QueryCacheStore<DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Box<[TraitCandidate], Global>, BuildHasherDefault<FxHasher>>>>>, pub module_exports: QueryCacheStore<DefaultCache<LocalDefId, Option<&'tcx [Export]>>>, pub impl_defaultness: QueryCacheStore<DefaultCache<DefId, Defaultness>>, pub impl_constness: QueryCacheStore<DefaultCache<DefId, Constness>>, pub check_item_well_formed: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_trait_item_well_formed: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub check_impl_item_well_formed: QueryCacheStore<DefaultCache<LocalDefId, ()>>, pub reachable_non_generics: QueryCacheStore<ArenaCache<'tcx, CrateNum, HashMap<DefId, SymbolExportLevel, BuildHasherDefault<FxHasher>>>>, pub is_reachable_non_generic: QueryCacheStore<DefaultCache<DefId, bool>>, pub is_unreachable_local_definition: QueryCacheStore<DefaultCache<LocalDefId, bool>>, pub upstream_monomorphizations: QueryCacheStore<ArenaCache<'tcx, (), HashMap<DefId, HashMap<&'tcx List<GenericArg<'tcx>>, CrateNum, BuildHasherDefault<FxHasher>>, BuildHasherDefault<FxHasher>>>>, pub upstream_monomorphizations_for: QueryCacheStore<DefaultCache<DefId, Option<&'tcx HashMap<&'tcx List<GenericArg<'tcx>>, CrateNum, BuildHasherDefault<FxHasher>>>>>, pub upstream_drop_glue_for: QueryCacheStore<DefaultCache<&'tcx List<GenericArg<'tcx>>, Option<CrateNum>>>, pub foreign_modules: QueryCacheStore<DefaultCache<CrateNum, Rc<HashMap<DefId, ForeignModule, BuildHasherDefault<FxHasher>>>>>, pub entry_fn: QueryCacheStore<DefaultCache<(), Option<(DefId, EntryFnType)>>>, pub proc_macro_decls_static: QueryCacheStore<DefaultCache<(), Option<LocalDefId>>>, pub crate_hash: QueryCacheStore<DefaultCache<CrateNum, Svh>>, pub crate_host_hash: QueryCacheStore<DefaultCache<CrateNum, Option<Svh>>>, pub extra_filename: QueryCacheStore<DefaultCache<CrateNum, String>>, pub crate_extern_paths: QueryCacheStore<DefaultCache<CrateNum, Vec<PathBuf, Global>>>, pub implementations_of_trait: QueryCacheStore<DefaultCache<(CrateNum, DefId), &'tcx [(DefId, Option<SimplifiedTypeGen<DefId>>)]>>, pub all_trait_implementations: QueryCacheStore<DefaultCache<CrateNum, &'tcx [(DefId, Option<SimplifiedTypeGen<DefId>>)]>>, pub is_dllimport_foreign_item: QueryCacheStore<DefaultCache<DefId, bool>>, pub is_statically_included_foreign_item: QueryCacheStore<DefaultCache<DefId, bool>>, pub native_library_kind: QueryCacheStore<DefaultCache<DefId, Option<NativeLibKind>>>, pub resolve_lifetimes_trait_definition: QueryCacheStore<ArenaCache<'tcx, LocalDefId, ResolveLifetimes>>, pub resolve_lifetimes: QueryCacheStore<ArenaCache<'tcx, LocalDefId, ResolveLifetimes>>, pub named_region_map: QueryCacheStore<DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Region, BuildHasherDefault<FxHasher>>>>>, pub is_late_bound_map: QueryCacheStore<DefaultCache<LocalDefId, Option<(LocalDefId, &'tcx HashSet<ItemLocalId, BuildHasherDefault<FxHasher>>)>>>, pub object_lifetime_defaults_map: QueryCacheStore<DefaultCache<LocalDefId, Option<Vec<Set1<Region>, Global>>>>, pub late_bound_vars_map: QueryCacheStore<DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Vec<BoundVariableKind, Global>, BuildHasherDefault<FxHasher>>>>>, pub lifetime_scope_map: QueryCacheStore<DefaultCache<LocalDefId, Option<HashMap<ItemLocalId, LifetimeScopeForPath, BuildHasherDefault<FxHasher>>>>>, pub visibility: QueryCacheStore<DefaultCache<DefId, Visibility>>, pub type_uninhabited_from: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, DefIdForest>>, pub dep_kind: QueryCacheStore<DefaultCache<CrateNum, CrateDepKind>>, pub crate_name: QueryCacheStore<DefaultCache<CrateNum, Symbol>>, pub item_children: QueryCacheStore<DefaultCache<DefId, &'tcx [Export]>>, pub extern_mod_stmt_cnum: QueryCacheStore<DefaultCache<LocalDefId, Option<CrateNum>>>, pub get_lib_features: QueryCacheStore<ArenaCache<'tcx, (), LibFeatures>>, pub defined_lib_features: QueryCacheStore<DefaultCache<CrateNum, &'tcx [(Symbol, Option<Symbol>)]>>, pub get_lang_items: QueryCacheStore<ArenaCache<'tcx, (), LanguageItems>>, pub all_diagnostic_items: QueryCacheStore<ArenaCache<'tcx, (), DiagnosticItems>>, pub defined_lang_items: QueryCacheStore<DefaultCache<CrateNum, &'tcx [(DefId, usize)]>>, pub diagnostic_items: QueryCacheStore<ArenaCache<'tcx, CrateNum, DiagnosticItems>>, pub missing_lang_items: QueryCacheStore<DefaultCache<CrateNum, &'tcx [LangItem]>>, pub visible_parent_map: QueryCacheStore<ArenaCache<'tcx, (), HashMap<DefId, DefId, BuildHasherDefault<FxHasher>>>>, pub trimmed_def_paths: QueryCacheStore<ArenaCache<'tcx, (), HashMap<DefId, Symbol, BuildHasherDefault<FxHasher>>>>, pub missing_extern_crate_item: QueryCacheStore<DefaultCache<CrateNum, bool>>, pub used_crate_source: QueryCacheStore<DefaultCache<CrateNum, Rc<CrateSource>>>, pub postorder_cnums: QueryCacheStore<DefaultCache<(), &'tcx [CrateNum]>>, pub is_private_dep: QueryCacheStore<DefaultCache<CrateNum, bool>>, pub allocator_kind: QueryCacheStore<DefaultCache<(), Option<AllocatorKind>>>, pub upvars_mentioned: QueryCacheStore<DefaultCache<DefId, Option<&'tcx IndexMap<HirId, Upvar, BuildHasherDefault<FxHasher>>>>>, pub maybe_unused_trait_import: QueryCacheStore<DefaultCache<LocalDefId, bool>>, pub maybe_unused_extern_crates: QueryCacheStore<DefaultCache<(), &'tcx [(LocalDefId, Span)]>>, pub names_imported_by_glob_use: QueryCacheStore<DefaultCache<LocalDefId, &'tcx HashSet<Symbol, BuildHasherDefault<FxHasher>>>>, pub stability_index: QueryCacheStore<ArenaCache<'tcx, (), Index<'tcx>>>, pub crates: QueryCacheStore<DefaultCache<(), &'tcx [CrateNum]>>, pub all_traits: QueryCacheStore<DefaultCache<(), &'tcx [DefId]>>, pub exported_symbols: QueryCacheStore<DefaultCache<CrateNum, &'tcx [(ExportedSymbol<'tcx>, SymbolExportLevel)]>>, pub collect_and_partition_mono_items: QueryCacheStore<DefaultCache<(), (&'tcx HashSet<DefId, BuildHasherDefault<FxHasher>>, &'tcx [CodegenUnit<'tcx>])>>, pub is_codegened_item: QueryCacheStore<DefaultCache<DefId, bool>>, pub codegened_and_inlined_items: QueryCacheStore<DefaultCache<(), &'tcx HashSet<DefId, BuildHasherDefault<FxHasher>>>>, pub codegen_unit: QueryCacheStore<DefaultCache<Symbol, &'tcx CodegenUnit<'tcx>>>, pub unused_generic_params: QueryCacheStore<DefaultCache<InstanceDef<'tcx>, FiniteBitSet<u32>>>, pub backend_optimization_level: QueryCacheStore<DefaultCache<(), OptLevel>>, pub output_filenames: QueryCacheStore<DefaultCache<(), Arc<OutputFilenames>>>, pub normalize_projection_ty: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, ProjectionTy<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, NormalizationResult<'tcx>>>, NoSolution>>>, pub normalize_generic_arg_after_erasing_regions: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, GenericArg<'tcx>>, GenericArg<'tcx>>>, pub normalize_mir_const_after_erasing_regions: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, ConstantKind<'tcx>>, ConstantKind<'tcx>>>, pub implied_outlives_bounds: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Vec<OutlivesBound<'tcx>, Global>>>, NoSolution>>>, pub dropck_outlives: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, DropckOutlivesResult<'tcx>>>, NoSolution>>>, pub evaluate_obligation: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Predicate<'tcx>>>, Result<EvaluationResult, OverflowError>>>, pub evaluate_goal: QueryCacheStore<DefaultCache<Canonical<'tcx, ChalkEnvironmentAndGoal<'tcx>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>, pub type_op_ascribe_user_type: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, AscribeUserType<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>, pub type_op_eq: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Eq<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>, pub type_op_subtype: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Subtype<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>, pub type_op_prove_predicate: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, ProvePredicate<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>, pub type_op_normalize_ty: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<&'tcx TyS<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, &'tcx TyS<'tcx>>>, NoSolution>>>, pub type_op_normalize_predicate: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<Predicate<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Predicate<'tcx>>>, NoSolution>>>, pub type_op_normalize_poly_fn_sig: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<Binder<'tcx, FnSig<'tcx>>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Binder<'tcx, FnSig<'tcx>>>>, NoSolution>>>, pub type_op_normalize_fn_sig: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<FnSig<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, FnSig<'tcx>>>, NoSolution>>>, pub subst_and_check_impossible_predicates: QueryCacheStore<DefaultCache<(DefId, &'tcx List<GenericArg<'tcx>>), bool>>, pub method_autoderef_steps: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, MethodAutoderefStepsResult<'tcx>>>, pub supported_target_features: QueryCacheStore<ArenaCache<'tcx, CrateNum, HashMap<String, Option<Symbol>, BuildHasherDefault<FxHasher>>>>, pub instance_def_size_estimate: QueryCacheStore<DefaultCache<InstanceDef<'tcx>, usize>>, pub features_query: QueryCacheStore<DefaultCache<(), &'tcx Features>>, pub resolve_instance: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, (DefId, &'tcx List<GenericArg<'tcx>>)>, Result<Option<Instance<'tcx>>, ErrorReported>>>, pub resolve_instance_of_const_arg: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, (LocalDefId, DefId, &'tcx List<GenericArg<'tcx>>)>, Result<Option<Instance<'tcx>>, ErrorReported>>>, pub normalize_opaque_types: QueryCacheStore<DefaultCache<&'tcx List<Predicate<'tcx>>, &'tcx List<Predicate<'tcx>>>>, pub conservative_is_privately_uninhabited: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>, pub limits: QueryCacheStore<DefaultCache<(), Limits>>, pub diagnostic_hir_wf_check: QueryCacheStore<DefaultCache<(Predicate<'tcx>, WellFormedLoc), Option<ObligationCause<'tcx>>>>,
}

Fields

trigger_delay_span_bug: QueryCacheStore<DefaultCache<DefId, ()>>

[query description - consider adding a doc-comment!] trigger a delay span bug

resolutions: QueryCacheStore<DefaultCache<(), &'tcx ResolverOutputs>>

[query description - consider adding a doc-comment!] get the resolver outputs

source_span: QueryCacheStore<DefaultCache<LocalDefId, Span>>

Return the span for a definition. Contrary to def_span below, this query returns the full absolute span of the definition. This span is meant for dep-tracking rather than diagnostics. It should not be used outside of rustc_middle::hir::source_map.

hir_crate: QueryCacheStore<DefaultCache<(), &'tcx Crate<'tcx>>>

Represents crate as a whole (as distinct from the top-level crate module). If you call hir_crate (e.g., indirectly by calling tcx.hir().krate()), we will have to assume that any change means that you need to be recompiled. This is because the hir_crate query gives you access to all other items. To avoid this fate, do not call tcx.hir().krate(); instead, prefer wrappers like tcx.visit_all_items_in_krate().

hir_module_items: QueryCacheStore<ArenaCache<'tcx, LocalDefId, ModuleItems>>

The items in a module.

This can be conveniently accessed by tcx.hir().visit_item_likes_in_module. Avoid calling this query directly.

hir_owner: QueryCacheStore<DefaultCache<LocalDefId, Option<Owner<'tcx>>>>

Gives access to the HIR node for the HIR owner key.

This can be conveniently accessed by methods on tcx.hir(). Avoid calling this query directly.

hir_owner_parent: QueryCacheStore<DefaultCache<LocalDefId, HirId>>

Gives access to the HIR node’s parent for the HIR owner key.

This can be conveniently accessed by methods on tcx.hir(). Avoid calling this query directly.

hir_owner_nodes: QueryCacheStore<DefaultCache<LocalDefId, Option<&'tcx OwnerNodes<'tcx>>>>

Gives access to the HIR nodes and bodies inside the HIR owner key.

This can be conveniently accessed by methods on tcx.hir(). Avoid calling this query directly.

hir_attrs: QueryCacheStore<DefaultCache<LocalDefId, &'tcx AttributeMap<'tcx>>>

Gives access to the HIR attributes inside the HIR owner key.

This can be conveniently accessed by methods on tcx.hir(). Avoid calling this query directly.

opt_const_param_of: QueryCacheStore<DefaultCache<LocalDefId, Option<DefId>>>

Computes the DefId of the corresponding const parameter in case the key is a const argument and returns None otherwise.

ⓘ
let a = foo::<7>();
//            ^ Calling `opt_const_param_of` for this argument,

fn foo<const N: usize>()
//           ^ returns this `DefId`.

fn bar() {
// ^ While calling `opt_const_param_of` for other bodies returns `None`.
}
const_param_default: QueryCacheStore<DefaultCache<DefId, &'tcx Const<'tcx>>>

Given the def_id of a const-generic parameter, computes the associated default const parameter. e.g. fn example<const N: usize=3> called on N would return 3.

default_anon_const_substs: QueryCacheStore<DefaultCache<DefId, &'tcx List<GenericArg<'tcx>>>>

[query description - consider adding a doc-comment!] computing the default generic arguments for tcx.def_path_str(key)

type_of: QueryCacheStore<DefaultCache<DefId, &'tcx TyS<'tcx>>>

Records the type of every item.

analysis: QueryCacheStore<DefaultCache<(), Result<(), ErrorReported>>>

[query description - consider adding a doc-comment!] running analysis passes on this crate

generics_of: QueryCacheStore<ArenaCache<'tcx, DefId, Generics>>

Maps from the DefId of an item (trait/struct/enum/fn) to its associated generics.

predicates_of: QueryCacheStore<DefaultCache<DefId, GenericPredicates<'tcx>>>

Maps from the DefId of an item (trait/struct/enum/fn) to the predicates (where-clauses) that must be proven true in order to reference it. This is almost always the “predicates query” that you want.

predicates_of builds on predicates_defined_on – in fact, it is almost always the same as that query, except for the case of traits. For traits, predicates_of contains an additional Self: Trait<...> predicate that users don’t actually write. This reflects the fact that to invoke the trait (e.g., via Default::default) you must supply types that actually implement the trait. (However, this extra predicate gets in the way of some checks, which are intended to operate over only the actual where-clauses written by the user.)

explicit_item_bounds: QueryCacheStore<DefaultCache<DefId, &'tcx [(Predicate<'tcx>, Span)]>>

Returns the list of bounds that can be used for SelectionCandidate::ProjectionCandidate(_) and ProjectionTyCandidate::TraitDef. Specifically this is the bounds written on the trait’s type definition, or those after the impl keyword

ⓘ
type X: Bound + 'lt
//      ^^^^^^^^^^^
impl Debug + Display
//   ^^^^^^^^^^^^^^^

key is the DefId of the associated type or opaque type.

Bounds from the parent (e.g. with nested impl trait) are not included.

item_bounds: QueryCacheStore<DefaultCache<DefId, &'tcx List<Predicate<'tcx>>>>

Elaborated version of the predicates from explicit_item_bounds.

For example:

trait MyTrait {
    type MyAType: Eq + ?Sized;
}

explicit_item_bounds returns [<Self as MyTrait>::MyAType: Eq], and item_bounds returns

[
    <Self as Trait>::MyAType: Eq,
    <Self as Trait>::MyAType: PartialEq<<Self as Trait>::MyAType>
]

Bounds from the parent (e.g. with nested impl trait) are not included.

native_libraries: QueryCacheStore<DefaultCache<CrateNum, Rc<Vec<NativeLib, Global>>>>

[query description - consider adding a doc-comment!] looking up the native libraries of a linked crate

lint_levels: QueryCacheStore<ArenaCache<'tcx, (), LintLevelMap>>

[query description - consider adding a doc-comment!] computing the lint levels for items in this crate

parent_module_from_def_id: QueryCacheStore<DefaultCache<LocalDefId, LocalDefId>>

[query description - consider adding a doc-comment!] parent module of tcx.def_path_str(key.to_def_id())

expn_that_defined: QueryCacheStore<DefaultCache<DefId, ExpnId>>

[query description - consider adding a doc-comment!] expansion that defined tcx.def_path_str(key)

is_panic_runtime: QueryCacheStore<DefaultCache<CrateNum, bool>>

[query description - consider adding a doc-comment!] checking if the crate is_panic_runtime

thir_body: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, (&'tcx Steal<Thir<'tcx>>, ExprId)>>

Fetch the THIR for a given body. If typeck for that body failed, returns an empty Thir.

thir_tree: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, String>>

Create a THIR tree for debugging.

mir_keys: QueryCacheStore<ArenaCache<'tcx, (), HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>

Set of all the DefIds in this crate that have MIR associated with them. This includes all the body owners, but also things like struct constructors.

mir_const_qualif: QueryCacheStore<DefaultCache<DefId, ConstQualifs>>

Maps DefId’s that have an associated mir::Body to the result of the MIR const-checking pass. This is the set of qualifs in the final value of a const.

mir_const_qualif_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), ConstQualifs>>

[query description - consider adding a doc-comment!] const checking the const argument tcx.def_path_str(key.0.to_def_id())

mir_built: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>

Fetch the MIR for a given DefId right after it’s built - this includes unreachable code.

mir_const: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>

Fetch the MIR for a given DefId up till the point where it is ready for const qualification.

See the README for the mir module for details.

thir_abstract_const: QueryCacheStore<DefaultCache<DefId, Result<Option<&'tcx [Node<'tcx>]>, ErrorReported>>>

Try to build an abstract representation of the given constant.

thir_abstract_const_of_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), Result<Option<&'tcx [Node<'tcx>]>, ErrorReported>>>

Try to build an abstract representation of the given constant.

try_unify_abstract_consts: QueryCacheStore<DefaultCache<(Unevaluated<'tcx, ()>, Unevaluated<'tcx, ()>), bool>>

[query description - consider adding a doc-comment!] trying to unify the generic constants tcx.def_path_str(key.0.def.did) and tcx.def_path_str(key.1.def.did)

mir_drops_elaborated_and_const_checked: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>

[query description - consider adding a doc-comment!] elaborating drops for tcx.def_path_str(key.did.to_def_id())

mir_for_ctfe: QueryCacheStore<DefaultCache<DefId, &'tcx Body<'tcx>>>

[query description - consider adding a doc-comment!] caching mir of tcx.def_path_str(key) for CTFE

mir_for_ctfe_of_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), &'tcx Body<'tcx>>>

[query description - consider adding a doc-comment!] MIR for CTFE of the const argument tcx.def_path_str(key.0.to_def_id())

mir_promoted: QueryCacheStore<DefaultCache<WithOptConstParam<LocalDefId>, (&'tcx Steal<Body<'tcx>>, &'tcx Steal<IndexVec<Promoted, Body<'tcx>>>)>>

[query description - consider adding a doc-comment!] processing if key.const_param_did.is_some() { "the const argument " } else { "" } tcx.def_path_str(key.did.to_def_id())

symbols_for_closure_captures: QueryCacheStore<DefaultCache<(LocalDefId, DefId), Vec<Symbol, Global>>>

[query description - consider adding a doc-comment!] symbols for captures of closure tcx.def_path_str(key.1) in tcx.def_path_str(key.0.to_def_id())

optimized_mir: QueryCacheStore<DefaultCache<DefId, &'tcx Body<'tcx>>>

MIR after our optimization passes have run. This is MIR that is ready for codegen. This is also the only query that can fetch non-local MIR, at present.

coverageinfo: QueryCacheStore<ArenaCache<'tcx, InstanceDef<'tcx>, CoverageInfo>>

Returns coverage summary info for a function, after executing the InstrumentCoverage MIR pass (assuming the -Zinstrument-coverage option is enabled).

covered_file_name: QueryCacheStore<ArenaCache<'tcx, DefId, Option<Symbol>>>

Returns the name of the file that contains the function body, if instrumented for coverage.

covered_code_regions: QueryCacheStore<ArenaCache<'tcx, DefId, Vec<&'tcx CodeRegion, Global>>>

Returns the CodeRegions for a function that has instrumented coverage, in case the function was optimized out before codegen, and before being added to the Coverage Map.

promoted_mir: QueryCacheStore<DefaultCache<DefId, &'tcx IndexVec<Promoted, Body<'tcx>>>>

The DefId is the DefId of the containing MIR body. Promoteds do not have their own DefId. This function returns all promoteds in the specified body. The body references promoteds by the DefId and the mir::Promoted index. This is necessary, because after inlining a body may refer to promoteds from other bodies. In that case you still need to use the DefId of the original body.

promoted_mir_of_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), &'tcx IndexVec<Promoted, Body<'tcx>>>>

[query description - consider adding a doc-comment!] optimizing promoted MIR for the const argument tcx.def_path_str(key.0.to_def_id())

erase_regions_ty: QueryCacheStore<DefaultCache<&'tcx TyS<'tcx>, &'tcx TyS<'tcx>>>

Erases regions from ty to yield a new type. Normally you would just use tcx.erase_regions(value), however, which uses this query as a kind of cache.

wasm_import_module_map: QueryCacheStore<ArenaCache<'tcx, CrateNum, HashMap<DefId, String, BuildHasherDefault<FxHasher>>>>

[query description - consider adding a doc-comment!] wasm import module map

predicates_defined_on: QueryCacheStore<DefaultCache<DefId, GenericPredicates<'tcx>>>

Maps from the DefId of an item (trait/struct/enum/fn) to the predicates (where-clauses) directly defined on it. This is equal to the explicit_predicates_of predicates plus the inferred_outlives_of predicates.

trait_explicit_predicates_and_bounds: QueryCacheStore<DefaultCache<LocalDefId, GenericPredicates<'tcx>>>

Returns everything that looks like a predicate written explicitly by the user on a trait item.

Traits are unusual, because predicates on associated types are converted into bounds on that type for backwards compatibility:

trait X where Self::U: Copy { type U; }

becomes

trait X { type U: Copy; }

explicit_predicates_of and explicit_item_bounds will then take the appropriate subsets of the predicates here.

explicit_predicates_of: QueryCacheStore<DefaultCache<DefId, GenericPredicates<'tcx>>>

Returns the predicates written explicitly by the user.

inferred_outlives_of: QueryCacheStore<DefaultCache<DefId, &'tcx [(Predicate<'tcx>, Span)]>>

Returns the inferred outlives predicates (e.g., for struct Foo<'a, T> { x: &'a T }, this would return T: 'a).

super_predicates_of: QueryCacheStore<DefaultCache<DefId, GenericPredicates<'tcx>>>

Maps from the DefId of a trait to the list of super-predicates. This is a subset of the full list of predicates. We store these in a separate map because we must evaluate them even during type conversion, often before the full predicates are available (note that supertraits have additional acyclicity requirements).

super_predicates_that_define_assoc_type: QueryCacheStore<DefaultCache<(DefId, Option<Ident>), GenericPredicates<'tcx>>>

The Option<Ident> is the name of an associated type. If it is None, then this query returns the full set of predicates. If Some<Ident>, then the query returns only the subset of super-predicates that reference traits that define the given associated type. This is used to avoid cycles in resolving types like T::Item.

type_param_predicates: QueryCacheStore<DefaultCache<(DefId, LocalDefId, Ident), GenericPredicates<'tcx>>>

To avoid cycles within the predicates of a single item we compute per-type-parameter predicates for resolving T::AssocTy.

trait_def: QueryCacheStore<ArenaCache<'tcx, DefId, TraitDef>>

[query description - consider adding a doc-comment!] computing trait definition for tcx.def_path_str(key)

adt_def: QueryCacheStore<DefaultCache<DefId, &'tcx AdtDef>>

[query description - consider adding a doc-comment!] computing ADT definition for tcx.def_path_str(key)

adt_destructor: QueryCacheStore<DefaultCache<DefId, Option<Destructor>>>

[query description - consider adding a doc-comment!] computing Drop impl for tcx.def_path_str(key)

adt_sized_constraint: QueryCacheStore<DefaultCache<DefId, AdtSizedConstraint<'tcx>>>

[query description - consider adding a doc-comment!] computing Sized constraints for tcx.def_path_str(key)

adt_dtorck_constraint: QueryCacheStore<DefaultCache<DefId, Result<DtorckConstraint<'tcx>, NoSolution>>>

[query description - consider adding a doc-comment!] computing drop-check constraints for tcx.def_path_str(key)

is_const_fn_raw: QueryCacheStore<DefaultCache<DefId, bool>>

Returns true if this is a const fn, use the is_const_fn to know whether your crate actually sees it as const fn (e.g., the const-fn-ness might be unstable and you might not have the feature gate active).

Do not call this function manually. It is only meant to cache the base data for the is_const_fn function.

asyncness: QueryCacheStore<DefaultCache<DefId, IsAsync>>

[query description - consider adding a doc-comment!] checking if the function is async: tcx.def_path_str(key)

is_promotable_const_fn: QueryCacheStore<DefaultCache<DefId, bool>>

Returns true if calls to the function may be promoted.

This is either because the function is e.g., a tuple-struct or tuple-variant constructor, or because it has the #[rustc_promotable] attribute. The attribute should be removed in the future in favour of some form of check which figures out whether the function does not inspect the bits of any of its arguments (so is essentially just a constructor function).

is_foreign_item: QueryCacheStore<DefaultCache<DefId, bool>>

Returns true if this is a foreign item (i.e., linked via extern { ... }).

static_mutability: QueryCacheStore<DefaultCache<DefId, Option<Mutability>>>

Returns Some(mutability) if the node pointed to by def_id is a static item.

generator_kind: QueryCacheStore<DefaultCache<DefId, Option<GeneratorKind>>>

Returns Some(generator_kind) if the node pointed to by def_id is a generator.

crate_variances: QueryCacheStore<ArenaCache<'tcx, (), CrateVariancesMap<'tcx>>>

Gets a map with the variance of every item; use item_variance instead.

variances_of: QueryCacheStore<DefaultCache<DefId, &'tcx [Variance]>>

Maps from the DefId of a type or region parameter to its (inferred) variance.

inferred_outlives_crate: QueryCacheStore<ArenaCache<'tcx, (), CratePredicatesMap<'tcx>>>

Maps from thee DefId of a type to its (inferred) outlives.

associated_item_def_ids: QueryCacheStore<DefaultCache<DefId, &'tcx [DefId]>>

Maps from an impl/trait DefId to a list of the DefIds of its items.

associated_item: QueryCacheStore<ArenaCache<'tcx, DefId, AssocItem>>

Maps from a trait item to the trait item “descriptor”.

associated_items: QueryCacheStore<ArenaCache<'tcx, DefId, AssocItems<'tcx>>>

Collects the associated items defined on a trait or impl.

impl_trait_ref: QueryCacheStore<DefaultCache<DefId, Option<TraitRef<'tcx>>>>

Given an impl_id, return the trait it implements. Return None if this is an inherent impl.

impl_polarity: QueryCacheStore<DefaultCache<DefId, ImplPolarity>>

[query description - consider adding a doc-comment!] computing implementation polarity of tcx.def_path_str(impl_id)

issue33140_self_ty: QueryCacheStore<DefaultCache<DefId, Option<&'tcx TyS<'tcx>>>>

[query description - consider adding a doc-comment!] computing Self type wrt issue #33140 tcx.def_path_str(key)

inherent_impls: QueryCacheStore<DefaultCache<DefId, &'tcx [DefId]>>

Maps a DefId of a type to a list of its inherent impls. Contains implementations of methods that are inherent to a type. Methods in these implementations don’t need to be exported.

unsafety_check_result: QueryCacheStore<DefaultCache<LocalDefId, &'tcx UnsafetyCheckResult>>

The result of unsafety-checking this LocalDefId.

unsafety_check_result_for_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), &'tcx UnsafetyCheckResult>>

[query description - consider adding a doc-comment!] unsafety-checking the const argument tcx.def_path_str(key.0.to_def_id())

thir_check_unsafety: QueryCacheStore<DefaultCache<LocalDefId, ()>>

Unsafety-check this LocalDefId with THIR unsafeck. This should be used with -Zthir-unsafeck.

thir_check_unsafety_for_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), ()>>

[query description - consider adding a doc-comment!] unsafety-checking the const argument tcx.def_path_str(key.0.to_def_id())

unsafe_derive_on_repr_packed: QueryCacheStore<DefaultCache<LocalDefId, ()>>

HACK: when evaluated, this reports an “unsafe derive on repr(packed)” error.

Unsafety checking is executed for each method separately, but we only want to emit this error once per derive. As there are some impls with multiple methods, we use a query for deduplication.

fn_sig: QueryCacheStore<DefaultCache<DefId, Binder<'tcx, FnSig<'tcx>>>>

Computes the signature of the function.

lint_mod: QueryCacheStore<DefaultCache<LocalDefId, ()>>

Performs lint checking for the module.

check_mod_attrs: QueryCacheStore<DefaultCache<LocalDefId, ()>>

Checks the attributes in the module.

check_mod_unstable_api_usage: QueryCacheStore<DefaultCache<LocalDefId, ()>>

Checks for uses of unstable APIs in the module.

check_mod_const_bodies: QueryCacheStore<DefaultCache<LocalDefId, ()>>

Checks the const bodies in the module for illegal operations (e.g. if or loop).

check_mod_loops: QueryCacheStore<DefaultCache<LocalDefId, ()>>

Checks the loops in the module.

check_mod_naked_functions: QueryCacheStore<DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] checking naked functions in describe_as_module(key, tcx)

check_mod_item_types: QueryCacheStore<DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] checking item types in describe_as_module(key, tcx)

check_mod_privacy: QueryCacheStore<DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] checking privacy in describe_as_module(key, tcx)

check_mod_intrinsics: QueryCacheStore<DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] checking intrinsics in describe_as_module(key, tcx)

check_mod_liveness: QueryCacheStore<DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] checking liveness of variables in describe_as_module(key, tcx)

check_mod_impl_wf: QueryCacheStore<DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] checking that impls are well-formed in describe_as_module(key, tcx)

collect_mod_item_types: QueryCacheStore<DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] collecting item types in describe_as_module(key, tcx)

coerce_unsized_info: QueryCacheStore<DefaultCache<DefId, CoerceUnsizedInfo>>

Caches CoerceUnsized kinds for impls on custom types.

typeck_item_bodies: QueryCacheStore<DefaultCache<(), ()>>

[query description - consider adding a doc-comment!] type-checking all item bodies

typeck: QueryCacheStore<DefaultCache<LocalDefId, &'tcx TypeckResults<'tcx>>>

[query description - consider adding a doc-comment!] type-checking tcx.def_path_str(key.to_def_id())

typeck_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), &'tcx TypeckResults<'tcx>>>

[query description - consider adding a doc-comment!] type-checking the const argument tcx.def_path_str(key.0.to_def_id())

diagnostic_only_typeck: QueryCacheStore<DefaultCache<LocalDefId, &'tcx TypeckResults<'tcx>>>

[query description - consider adding a doc-comment!] type-checking tcx.def_path_str(key.to_def_id())

used_trait_imports: QueryCacheStore<DefaultCache<LocalDefId, &'tcx HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>

[query description - consider adding a doc-comment!] used_trait_imports tcx.def_path_str(key.to_def_id())

has_typeck_results: QueryCacheStore<DefaultCache<DefId, bool>>

[query description - consider adding a doc-comment!] checking whether tcx.def_path_str(def_id) has a body

coherent_trait: QueryCacheStore<DefaultCache<DefId, ()>>

[query description - consider adding a doc-comment!] coherence checking all impls of trait tcx.def_path_str(def_id)

mir_borrowck: QueryCacheStore<DefaultCache<LocalDefId, &'tcx BorrowCheckResult<'tcx>>>

Borrow-checks the function body. If this is a closure, returns additional requirements that the closure’s creator must verify.

mir_borrowck_const_arg: QueryCacheStore<DefaultCache<(LocalDefId, DefId), &'tcx BorrowCheckResult<'tcx>>>

[query description - consider adding a doc-comment!] borrow-checking the const argument tcx.def_path_str(key.0.to_def_id())

crate_inherent_impls: QueryCacheStore<ArenaCache<'tcx, (), CrateInherentImpls>>

Gets a complete map from all types to their inherent impls. Not meant to be used directly outside of coherence.

crate_inherent_impls_overlap_check: QueryCacheStore<DefaultCache<(), ()>>

Checks all types in the crate for overlap in their inherent impls. Reports errors. Not meant to be used directly outside of coherence.

orphan_check_crate: QueryCacheStore<DefaultCache<(), &'tcx [LocalDefId]>>

Checks whether all impls in the crate pass the overlap check, returning which impls fail it. If all impls are correct, the returned slice is empty.

mir_callgraph_reachable: QueryCacheStore<DefaultCache<(Instance<'tcx>, LocalDefId), bool>>

Check whether the function has any recursion that could cause the inliner to trigger a cycle. Returns the call stack causing the cycle. The call stack does not contain the current function, just all intermediate functions.

mir_inliner_callees: QueryCacheStore<DefaultCache<InstanceDef<'tcx>, &'tcx [(DefId, &'tcx List<GenericArg<'tcx>>)]>>

Obtain all the calls into other local functions

eval_to_allocation_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, GlobalId<'tcx>>, Result<ConstAlloc<'tcx>, ErrorHandled>>>

Evaluates a constant and returns the computed allocation.

Do not use this directly, use the tcx.eval_static_initializer wrapper.

eval_to_const_value_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, GlobalId<'tcx>>, Result<ConstValue<'tcx>, ErrorHandled>>>

Evaluates const items or anonymous constants (such as enum variant explicit discriminants or array lengths) into a representation suitable for the type system and const generics.

Do not use this directly, use one of the following wrappers: tcx.const_eval_poly, tcx.const_eval_resolve, tcx.const_eval_instance, or tcx.const_eval_global_id.

const_to_valtree: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, ConstAlloc<'tcx>>, Option<ValTree<'tcx>>>>

Convert an evaluated constant to a type level constant or return None if that is not possible.

destructure_const: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx Const<'tcx>>, DestructuredConst<'tcx>>>

Destructure a constant ADT or array into its variant index and its field values.

deref_const: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx Const<'tcx>>, &'tcx Const<'tcx>>>

Dereference a constant reference or raw pointer and turn the result into a constant again.

const_caller_location: QueryCacheStore<DefaultCache<(Symbol, u32, u32), ConstValue<'tcx>>>

[query description - consider adding a doc-comment!] get a &core::panic::Location referring to a span

lit_to_const: QueryCacheStore<DefaultCache<LitToConstInput<'tcx>, Result<&'tcx Const<'tcx>, LitToConstError>>>

[query description - consider adding a doc-comment!] converting literal to const

check_match: QueryCacheStore<DefaultCache<DefId, ()>>

[query description - consider adding a doc-comment!] match-checking tcx.def_path_str(key)

privacy_access_levels: QueryCacheStore<DefaultCache<(), &'tcx AccessLevels<LocalDefId>>>

Performs part of the privacy check and computes “access levels”.

check_private_in_public: QueryCacheStore<DefaultCache<(), ()>>

[query description - consider adding a doc-comment!] checking for private elements in public interfaces

reachable_set: QueryCacheStore<ArenaCache<'tcx, (), HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>

[query description - consider adding a doc-comment!] reachability

region_scope_tree: QueryCacheStore<DefaultCache<DefId, &'tcx ScopeTree>>

Per-body region::ScopeTree. The DefId should be the owner DefId for the body; in the case of closures, this will be redirected to the enclosing function.

mir_shims: QueryCacheStore<ArenaCache<'tcx, InstanceDef<'tcx>, Body<'tcx>>>

Generates a MIR body for the shim.

symbol_name: QueryCacheStore<DefaultCache<Instance<'tcx>, SymbolName<'tcx>>>

The symbol_name query provides the symbol name for calling a given instance from the local crate. In particular, it will also look up the correct symbol name of instances from upstream crates.

opt_def_kind: QueryCacheStore<DefaultCache<DefId, Option<DefKind>>>

[query description - consider adding a doc-comment!] looking up definition kind of tcx.def_path_str(def_id)

def_span: QueryCacheStore<DefaultCache<DefId, Span>>

Gets the span for the definition.

def_ident_span: QueryCacheStore<DefaultCache<DefId, Option<Span>>>

Gets the span for the identifier of the definition.

lookup_stability: QueryCacheStore<DefaultCache<DefId, Option<&'tcx Stability>>>

[query description - consider adding a doc-comment!] looking up stability of tcx.def_path_str(def_id)

lookup_const_stability: QueryCacheStore<DefaultCache<DefId, Option<&'tcx ConstStability>>>

[query description - consider adding a doc-comment!] looking up const stability of tcx.def_path_str(def_id)

should_inherit_track_caller: QueryCacheStore<DefaultCache<DefId, bool>>

[query description - consider adding a doc-comment!] computing should_inherit_track_caller of tcx.def_path_str(def_id)

lookup_deprecation_entry: QueryCacheStore<DefaultCache<DefId, Option<DeprecationEntry>>>

[query description - consider adding a doc-comment!] checking whether tcx.def_path_str(def_id) is deprecated

item_attrs: QueryCacheStore<DefaultCache<DefId, &'tcx [Attribute]>>

[query description - consider adding a doc-comment!] collecting attributes of tcx.def_path_str(def_id)

codegen_fn_attrs: QueryCacheStore<ArenaCache<'tcx, DefId, CodegenFnAttrs>>

[query description - consider adding a doc-comment!] computing codegen attributes of tcx.def_path_str(def_id)

fn_arg_names: QueryCacheStore<DefaultCache<DefId, &'tcx [Ident]>>

[query description - consider adding a doc-comment!] looking up function parameter names for tcx.def_path_str(def_id)

rendered_const: QueryCacheStore<DefaultCache<DefId, String>>

Gets the rendered value of the specified constant or associated constant. Used by rustdoc.

impl_parent: QueryCacheStore<DefaultCache<DefId, Option<DefId>>>

[query description - consider adding a doc-comment!] computing specialization parent impl of tcx.def_path_str(def_id)

trait_of_item: QueryCacheStore<DefaultCache<DefId, Option<DefId>>>

Given an associated_item, find the trait it belongs to. Return None if the DefId is not an associated item.

is_ctfe_mir_available: QueryCacheStore<DefaultCache<DefId, bool>>

[query description - consider adding a doc-comment!] checking if item has ctfe mir available: tcx.def_path_str(key)

is_mir_available: QueryCacheStore<DefaultCache<DefId, bool>>

[query description - consider adding a doc-comment!] checking if item has mir available: tcx.def_path_str(key)

own_existential_vtable_entries: QueryCacheStore<DefaultCache<Binder<'tcx, ExistentialTraitRef<'tcx>>, &'tcx [DefId]>>

[query description - consider adding a doc-comment!] finding all existential vtable entries for trait tcx.def_path_str(key.def_id())

vtable_entries: QueryCacheStore<DefaultCache<Binder<'tcx, TraitRef<'tcx>>, &'tcx [VtblEntry<'tcx>]>>

[query description - consider adding a doc-comment!] finding all vtable entries for trait tcx.def_path_str(key.def_id())

vtable_trait_upcasting_coercion_new_vptr_slot: QueryCacheStore<DefaultCache<(&'tcx TyS<'tcx>, &'tcx TyS<'tcx>), Option<usize>>>

[query description - consider adding a doc-comment!] finding the slot within vtable for trait object key.1 vtable ptr during trait upcasting coercion from key.0 vtable

vtable_allocation: QueryCacheStore<DefaultCache<(&'tcx TyS<'tcx>, Option<Binder<'tcx, ExistentialTraitRef<'tcx>>>), AllocId>>

[query description - consider adding a doc-comment!] vtable const allocation for < key.0 as key.1.map(| trait_ref | format! ("{}", trait_ref)).unwrap_or("_".to_owned()) >

codegen_fulfill_obligation: QueryCacheStore<DefaultCache<(ParamEnv<'tcx>, Binder<'tcx, TraitRef<'tcx>>), Result<ImplSource<'tcx, ()>, ErrorReported>>>

[query description - consider adding a doc-comment!] checking if tcx.def_path_str(key.1.def_id()) fulfills its obligations

all_local_trait_impls: QueryCacheStore<DefaultCache<(), &'tcx BTreeMap<DefId, Vec<LocalDefId, Global>>>>

Return all impl blocks in the current crate.

trait_impls_of: QueryCacheStore<ArenaCache<'tcx, DefId, TraitImpls>>

Given a trait trait_id, return all known impl blocks.

specialization_graph_of: QueryCacheStore<ArenaCache<'tcx, DefId, Graph>>

[query description - consider adding a doc-comment!] building specialization graph of trait tcx.def_path_str(trait_id)

object_safety_violations: QueryCacheStore<DefaultCache<DefId, &'tcx [ObjectSafetyViolation]>>

[query description - consider adding a doc-comment!] determine object safety of trait tcx.def_path_str(trait_id)

param_env: QueryCacheStore<DefaultCache<DefId, ParamEnv<'tcx>>>

Gets the ParameterEnvironment for a given item; this environment will be in “user-facing” mode, meaning that it is suitable for type-checking etc, and it does not normalize specializable associated types. This is almost always what you want, unless you are doing MIR optimizations, in which case you might want to use reveal_all() method to change modes.

param_env_reveal_all_normalized: QueryCacheStore<DefaultCache<DefId, ParamEnv<'tcx>>>

Like param_env, but returns the ParamEnv in Reveal::All mode. Prefer this over tcx.param_env(def_id).with_reveal_all_normalized(tcx), as this method is more efficient.

is_copy_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

Trait selection queries. These are best used by invoking ty.is_copy_modulo_regions(), ty.is_copy(), etc, since that will prune the environment where possible.

is_sized_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

Query backing TyS::is_sized.

is_freeze_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

Query backing TyS::is_freeze.

is_unpin_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

Query backing TyS::is_unpin.

needs_drop_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

Query backing TyS::needs_drop.

has_significant_drop_raw: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

Query backing TyS::has_significant_drop_raw.

has_structural_eq_impls: QueryCacheStore<DefaultCache<&'tcx TyS<'tcx>, bool>>

Query backing TyS::is_structural_eq_shallow.

This is only correct for ADTs. Call is_structural_eq_shallow to handle all types correctly.

adt_drop_tys: QueryCacheStore<DefaultCache<DefId, Result<&'tcx List<&'tcx TyS<'tcx>>, AlwaysRequiresDrop>>>

A list of types where the ADT requires drop if and only if any of those types require drop. If the ADT is known to always need drop then Err(AlwaysRequiresDrop) is returned.

adt_significant_drop_tys: QueryCacheStore<DefaultCache<DefId, Result<&'tcx List<&'tcx TyS<'tcx>>, AlwaysRequiresDrop>>>

A list of types where the ADT requires drop if and only if any of those types has significant drop. A type marked with the attribute rustc_insignificant_dtor is considered to not be significant. A drop is significant if it is implemented by the user or does anything that will have any observable behavior (other than freeing up memory). If the ADT is known to have a significant destructor then Err(AlwaysRequiresDrop) is returned.

layout_of: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, Result<TyAndLayout<'tcx, &'tcx TyS<'tcx>>, LayoutError<'tcx>>>>

Computes the layout of a type. Note that this implicitly executes in “reveal all” mode, and will normalize the input type.

fn_abi_of_fn_ptr: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, (Binder<'tcx, FnSig<'tcx>>, &'tcx List<&'tcx TyS<'tcx>>)>, Result<&'tcx FnAbi<'tcx, &'tcx TyS<'tcx>>, FnAbiError<'tcx>>>>

Compute a FnAbi suitable for indirect calls, i.e. to fn pointers.

NB: this doesn’t handle virtual calls - those should use fn_abi_of_instance instead, where the instance is an InstanceDef::Virtual.

fn_abi_of_instance: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, (Instance<'tcx>, &'tcx List<&'tcx TyS<'tcx>>)>, Result<&'tcx FnAbi<'tcx, &'tcx TyS<'tcx>>, FnAbiError<'tcx>>>>

Compute a FnAbi suitable for declaring/defining an fn instance, and for direct calls to an fn.

NB: that includes virtual calls, which are represented by “direct calls” to an InstanceDef::Virtual instance (of <dyn Trait as Trait>::fn).

dylib_dependency_formats: QueryCacheStore<DefaultCache<CrateNum, &'tcx [(CrateNum, LinkagePreference)]>>

[query description - consider adding a doc-comment!] dylib dependency formats of crate

dependency_formats: QueryCacheStore<DefaultCache<(), Rc<Vec<(CrateType, Vec<Linkage, Global>), Global>>>>

[query description - consider adding a doc-comment!] get the linkage format of all dependencies

is_compiler_builtins: QueryCacheStore<DefaultCache<CrateNum, bool>>

[query description - consider adding a doc-comment!] checking if the crate is_compiler_builtins

has_global_allocator: QueryCacheStore<DefaultCache<CrateNum, bool>>

[query description - consider adding a doc-comment!] checking if the crate has_global_allocator

has_panic_handler: QueryCacheStore<DefaultCache<CrateNum, bool>>

[query description - consider adding a doc-comment!] checking if the crate has_panic_handler

is_profiler_runtime: QueryCacheStore<DefaultCache<CrateNum, bool>>

[query description - consider adding a doc-comment!] query a crate is #![profiler_runtime]

panic_strategy: QueryCacheStore<DefaultCache<CrateNum, PanicStrategy>>

[query description - consider adding a doc-comment!] query a crate’s configured panic strategy

panic_in_drop_strategy: QueryCacheStore<DefaultCache<CrateNum, PanicStrategy>>

[query description - consider adding a doc-comment!] query a crate’s configured panic-in-drop strategy

is_no_builtins: QueryCacheStore<DefaultCache<CrateNum, bool>>

[query description - consider adding a doc-comment!] test whether a crate has #![no_builtins]

symbol_mangling_version: QueryCacheStore<DefaultCache<CrateNum, SymbolManglingVersion>>

[query description - consider adding a doc-comment!] query a crate’s symbol mangling version

extern_crate: QueryCacheStore<DefaultCache<DefId, Option<&'tcx ExternCrate>>>

[query description - consider adding a doc-comment!] getting crate’s ExternCrateData

specializes: QueryCacheStore<DefaultCache<(DefId, DefId), bool>>

[query description - consider adding a doc-comment!] computing whether impls specialize one another

in_scope_traits_map: QueryCacheStore<DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Box<[TraitCandidate], Global>, BuildHasherDefault<FxHasher>>>>>

[query description - consider adding a doc-comment!] traits in scope at a block

module_exports: QueryCacheStore<DefaultCache<LocalDefId, Option<&'tcx [Export]>>>

[query description - consider adding a doc-comment!] looking up items exported by tcx.def_path_str(def_id.to_def_id())

impl_defaultness: QueryCacheStore<DefaultCache<DefId, Defaultness>>

[query description - consider adding a doc-comment!] looking up whether tcx.def_path_str(def_id) is a default impl

impl_constness: QueryCacheStore<DefaultCache<DefId, Constness>>

[query description - consider adding a doc-comment!] looking up whether tcx.def_path_str(def_id) is a const impl

check_item_well_formed: QueryCacheStore<DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] checking that tcx.def_path_str(key.to_def_id()) is well-formed

check_trait_item_well_formed: QueryCacheStore<DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] checking that tcx.def_path_str(key.to_def_id()) is well-formed

check_impl_item_well_formed: QueryCacheStore<DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] checking that tcx.def_path_str(key.to_def_id()) is well-formed

reachable_non_generics: QueryCacheStore<ArenaCache<'tcx, CrateNum, HashMap<DefId, SymbolExportLevel, BuildHasherDefault<FxHasher>>>>

[query description - consider adding a doc-comment!] looking up the exported symbols of a crate

is_reachable_non_generic: QueryCacheStore<DefaultCache<DefId, bool>>

[query description - consider adding a doc-comment!] checking whether tcx.def_path_str(def_id) is an exported symbol

is_unreachable_local_definition: QueryCacheStore<DefaultCache<LocalDefId, bool>>

[query description - consider adding a doc-comment!] checking whether tcx.def_path_str(def_id.to_def_id()) is reachable from outside the crate

upstream_monomorphizations: QueryCacheStore<ArenaCache<'tcx, (), HashMap<DefId, HashMap<&'tcx List<GenericArg<'tcx>>, CrateNum, BuildHasherDefault<FxHasher>>, BuildHasherDefault<FxHasher>>>>

The entire set of monomorphizations the local crate can safely link to because they are exported from upstream crates. Do not depend on this directly, as its value changes anytime a monomorphization gets added or removed in any upstream crate. Instead use the narrower upstream_monomorphizations_for, upstream_drop_glue_for, or, even better, Instance::upstream_monomorphization().

upstream_monomorphizations_for: QueryCacheStore<DefaultCache<DefId, Option<&'tcx HashMap<&'tcx List<GenericArg<'tcx>>, CrateNum, BuildHasherDefault<FxHasher>>>>>

Returns the set of upstream monomorphizations available for the generic function identified by the given def_id. The query makes sure to make a stable selection if the same monomorphization is available in multiple upstream crates.

You likely want to call Instance::upstream_monomorphization() instead of invoking this query directly.

upstream_drop_glue_for: QueryCacheStore<DefaultCache<&'tcx List<GenericArg<'tcx>>, Option<CrateNum>>>

Returns the upstream crate that exports drop-glue for the given type (substs is expected to be a single-item list containing the type one wants drop-glue for).

This is a subset of upstream_monomorphizations_for in order to increase dep-tracking granularity. Otherwise adding or removing any type with drop-glue in any upstream crate would invalidate all functions calling drop-glue of an upstream type.

You likely want to call Instance::upstream_monomorphization() instead of invoking this query directly.

NOTE: This query could easily be extended to also support other common functions that have are large set of monomorphizations (like Clone::clone for example).

foreign_modules: QueryCacheStore<DefaultCache<CrateNum, Rc<HashMap<DefId, ForeignModule, BuildHasherDefault<FxHasher>>>>>

[query description - consider adding a doc-comment!] looking up the foreign modules of a linked crate

entry_fn: QueryCacheStore<DefaultCache<(), Option<(DefId, EntryFnType)>>>

Identifies the entry-point (e.g., the main function) for a given crate, returning None if there is no entry point (such as for library crates).

proc_macro_decls_static: QueryCacheStore<DefaultCache<(), Option<LocalDefId>>>

[query description - consider adding a doc-comment!] looking up the derive registrar for a crate

crate_hash: QueryCacheStore<DefaultCache<CrateNum, Svh>>

[query description - consider adding a doc-comment!] looking up the hash a crate

crate_host_hash: QueryCacheStore<DefaultCache<CrateNum, Option<Svh>>>

[query description - consider adding a doc-comment!] looking up the hash of a host version of a crate

extra_filename: QueryCacheStore<DefaultCache<CrateNum, String>>

[query description - consider adding a doc-comment!] looking up the extra filename for a crate

crate_extern_paths: QueryCacheStore<DefaultCache<CrateNum, Vec<PathBuf, Global>>>

[query description - consider adding a doc-comment!] looking up the paths for extern crates

implementations_of_trait: QueryCacheStore<DefaultCache<(CrateNum, DefId), &'tcx [(DefId, Option<SimplifiedTypeGen<DefId>>)]>>

Given a crate and a trait, look up all impls of that trait in the crate. Return (impl_id, self_ty).

all_trait_implementations: QueryCacheStore<DefaultCache<CrateNum, &'tcx [(DefId, Option<SimplifiedTypeGen<DefId>>)]>>

Given a crate, look up all trait impls in that crate. Return (impl_id, self_ty).

is_dllimport_foreign_item: QueryCacheStore<DefaultCache<DefId, bool>>

[query description - consider adding a doc-comment!] is_dllimport_foreign_item( tcx.def_path_str(def_id) )

is_statically_included_foreign_item: QueryCacheStore<DefaultCache<DefId, bool>>

[query description - consider adding a doc-comment!] is_statically_included_foreign_item( tcx.def_path_str(def_id) )

native_library_kind: QueryCacheStore<DefaultCache<DefId, Option<NativeLibKind>>>

[query description - consider adding a doc-comment!] native_library_kind( tcx.def_path_str(def_id) )

resolve_lifetimes_trait_definition: QueryCacheStore<ArenaCache<'tcx, LocalDefId, ResolveLifetimes>>

Does lifetime resolution, but does not descend into trait items. This should only be used for resolving lifetimes of on trait definitions, and is used to avoid cycles. Importantly, resolve_lifetimes still visits the same lifetimes and is responsible for diagnostics. See `rustc_resolve::late::lifetimes for details.

resolve_lifetimes: QueryCacheStore<ArenaCache<'tcx, LocalDefId, ResolveLifetimes>>

Does lifetime resolution on items. Importantly, we can’t resolve lifetimes directly on things like trait methods, because of trait params. See `rustc_resolve::late::lifetimes for details.

named_region_map: QueryCacheStore<DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Region, BuildHasherDefault<FxHasher>>>>>

[query description - consider adding a doc-comment!] looking up a named region

is_late_bound_map: QueryCacheStore<DefaultCache<LocalDefId, Option<(LocalDefId, &'tcx HashSet<ItemLocalId, BuildHasherDefault<FxHasher>>)>>>

[query description - consider adding a doc-comment!] testing if a region is late bound

object_lifetime_defaults_map: QueryCacheStore<DefaultCache<LocalDefId, Option<Vec<Set1<Region>, Global>>>>

For a given item (like a struct), gets the default lifetimes to be used for each parameter if a trait object were to be passed for that parameter. For example, for struct Foo<'a, T, U>, this would be ['static, 'static]. For struct Foo<'a, T: 'a, U>, this would instead be ['a, 'static].

late_bound_vars_map: QueryCacheStore<DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Vec<BoundVariableKind, Global>, BuildHasherDefault<FxHasher>>>>>

[query description - consider adding a doc-comment!] looking up late bound vars

lifetime_scope_map: QueryCacheStore<DefaultCache<LocalDefId, Option<HashMap<ItemLocalId, LifetimeScopeForPath, BuildHasherDefault<FxHasher>>>>>

[query description - consider adding a doc-comment!] finds the lifetime scope for an HirId of a PathSegment

visibility: QueryCacheStore<DefaultCache<DefId, Visibility>>

[query description - consider adding a doc-comment!] computing visibility of tcx.def_path_str(def_id)

type_uninhabited_from: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, DefIdForest>>

Computes the set of modules from which this type is visibly uninhabited. To check whether a type is uninhabited at all (not just from a given module), you could check whether the forest is empty.

dep_kind: QueryCacheStore<DefaultCache<CrateNum, CrateDepKind>>

[query description - consider adding a doc-comment!] fetching what a dependency looks like

crate_name: QueryCacheStore<DefaultCache<CrateNum, Symbol>>

Gets the name of the crate.

item_children: QueryCacheStore<DefaultCache<DefId, &'tcx [Export]>>

[query description - consider adding a doc-comment!] collecting child items of tcx.def_path_str(def_id)

extern_mod_stmt_cnum: QueryCacheStore<DefaultCache<LocalDefId, Option<CrateNum>>>

[query description - consider adding a doc-comment!] computing crate imported by tcx.def_path_str(def_id.to_def_id())

get_lib_features: QueryCacheStore<ArenaCache<'tcx, (), LibFeatures>>

[query description - consider adding a doc-comment!] calculating the lib features map

defined_lib_features: QueryCacheStore<DefaultCache<CrateNum, &'tcx [(Symbol, Option<Symbol>)]>>

[query description - consider adding a doc-comment!] calculating the lib features defined in a crate

get_lang_items: QueryCacheStore<ArenaCache<'tcx, (), LanguageItems>>

Returns the lang items defined in another crate by loading it from metadata.

all_diagnostic_items: QueryCacheStore<ArenaCache<'tcx, (), DiagnosticItems>>

Returns all diagnostic items defined in all crates.

defined_lang_items: QueryCacheStore<DefaultCache<CrateNum, &'tcx [(DefId, usize)]>>

Returns the lang items defined in another crate by loading it from metadata.

diagnostic_items: QueryCacheStore<ArenaCache<'tcx, CrateNum, DiagnosticItems>>

Returns the diagnostic items defined in a crate.

missing_lang_items: QueryCacheStore<DefaultCache<CrateNum, &'tcx [LangItem]>>

[query description - consider adding a doc-comment!] calculating the missing lang items in a crate

visible_parent_map: QueryCacheStore<ArenaCache<'tcx, (), HashMap<DefId, DefId, BuildHasherDefault<FxHasher>>>>

[query description - consider adding a doc-comment!] calculating the visible parent map

trimmed_def_paths: QueryCacheStore<ArenaCache<'tcx, (), HashMap<DefId, Symbol, BuildHasherDefault<FxHasher>>>>

[query description - consider adding a doc-comment!] calculating trimmed def paths

missing_extern_crate_item: QueryCacheStore<DefaultCache<CrateNum, bool>>

[query description - consider adding a doc-comment!] seeing if we’re missing an extern crate item for this crate

used_crate_source: QueryCacheStore<DefaultCache<CrateNum, Rc<CrateSource>>>

[query description - consider adding a doc-comment!] looking at the source for a crate

postorder_cnums: QueryCacheStore<DefaultCache<(), &'tcx [CrateNum]>>

[query description - consider adding a doc-comment!] generating a postorder list of CrateNums

is_private_dep: QueryCacheStore<DefaultCache<CrateNum, bool>>

Returns whether or not the crate with CrateNum ‘cnum’ is marked as a private dependency

allocator_kind: QueryCacheStore<DefaultCache<(), Option<AllocatorKind>>>

[query description - consider adding a doc-comment!] allocator kind for the current crate

upvars_mentioned: QueryCacheStore<DefaultCache<DefId, Option<&'tcx IndexMap<HirId, Upvar, BuildHasherDefault<FxHasher>>>>>

[query description - consider adding a doc-comment!] collecting upvars mentioned in tcx.def_path_str(def_id)

maybe_unused_trait_import: QueryCacheStore<DefaultCache<LocalDefId, bool>>

[query description - consider adding a doc-comment!] maybe_unused_trait_import for tcx.def_path_str(def_id.to_def_id())

maybe_unused_extern_crates: QueryCacheStore<DefaultCache<(), &'tcx [(LocalDefId, Span)]>>

[query description - consider adding a doc-comment!] looking up all possibly unused extern crates

names_imported_by_glob_use: QueryCacheStore<DefaultCache<LocalDefId, &'tcx HashSet<Symbol, BuildHasherDefault<FxHasher>>>>

[query description - consider adding a doc-comment!] names_imported_by_glob_use for tcx.def_path_str(def_id.to_def_id())

stability_index: QueryCacheStore<ArenaCache<'tcx, (), Index<'tcx>>>

[query description - consider adding a doc-comment!] calculating the stability index for the local crate

crates: QueryCacheStore<DefaultCache<(), &'tcx [CrateNum]>>

[query description - consider adding a doc-comment!] fetching all foreign CrateNum instances

all_traits: QueryCacheStore<DefaultCache<(), &'tcx [DefId]>>

A vector of every trait accessible in the whole crate (i.e., including those from subcrates). This is used only for error reporting.

exported_symbols: QueryCacheStore<DefaultCache<CrateNum, &'tcx [(ExportedSymbol<'tcx>, SymbolExportLevel)]>>

The list of symbols exported from the given crate.

collect_and_partition_mono_items: QueryCacheStore<DefaultCache<(), (&'tcx HashSet<DefId, BuildHasherDefault<FxHasher>>, &'tcx [CodegenUnit<'tcx>])>>

[query description - consider adding a doc-comment!] collect_and_partition_mono_items

is_codegened_item: QueryCacheStore<DefaultCache<DefId, bool>>

[query description - consider adding a doc-comment!] determining whether tcx.def_path_str(def_id) needs codegen

codegened_and_inlined_items: QueryCacheStore<DefaultCache<(), &'tcx HashSet<DefId, BuildHasherDefault<FxHasher>>>>

All items participating in code generation together with items inlined into them.

codegen_unit: QueryCacheStore<DefaultCache<Symbol, &'tcx CodegenUnit<'tcx>>>

[query description - consider adding a doc-comment!] codegen_unit

unused_generic_params: QueryCacheStore<DefaultCache<InstanceDef<'tcx>, FiniteBitSet<u32>>>

[query description - consider adding a doc-comment!] determining which generic parameters are unused by tcx.def_path_str(key.def_id())

backend_optimization_level: QueryCacheStore<DefaultCache<(), OptLevel>>

[query description - consider adding a doc-comment!] optimization level used by backend

output_filenames: QueryCacheStore<DefaultCache<(), Arc<OutputFilenames>>>

[query description - consider adding a doc-comment!] output_filenames

normalize_projection_ty: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, ProjectionTy<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, NormalizationResult<'tcx>>>, NoSolution>>>

Do not call this query directly: invoke normalize instead.

normalize_generic_arg_after_erasing_regions: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, GenericArg<'tcx>>, GenericArg<'tcx>>>

Do not call this query directly: invoke normalize_erasing_regions instead.

normalize_mir_const_after_erasing_regions: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, ConstantKind<'tcx>>, ConstantKind<'tcx>>>

Do not call this query directly: invoke normalize_erasing_regions instead.

implied_outlives_bounds: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Vec<OutlivesBound<'tcx>, Global>>>, NoSolution>>>

[query description - consider adding a doc-comment!] computing implied outlives bounds for {:?}

dropck_outlives: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, DropckOutlivesResult<'tcx>>>, NoSolution>>>

Do not call this query directly: invoke infcx.at().dropck_outlives() instead.

evaluate_obligation: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Predicate<'tcx>>>, Result<EvaluationResult, OverflowError>>>

Do not call this query directly: invoke infcx.predicate_may_hold() or infcx.predicate_must_hold() instead.

evaluate_goal: QueryCacheStore<DefaultCache<Canonical<'tcx, ChalkEnvironmentAndGoal<'tcx>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>

[query description - consider adding a doc-comment!] evaluating trait selection obligation goal.value

type_op_ascribe_user_type: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, AscribeUserType<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>

Do not call this query directly: part of the Eq type-op

type_op_eq: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Eq<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>

Do not call this query directly: part of the Eq type-op

type_op_subtype: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Subtype<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>

Do not call this query directly: part of the Subtype type-op

type_op_prove_predicate: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, ProvePredicate<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>

Do not call this query directly: part of the ProvePredicate type-op

type_op_normalize_ty: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<&'tcx TyS<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, &'tcx TyS<'tcx>>>, NoSolution>>>

Do not call this query directly: part of the Normalize type-op

type_op_normalize_predicate: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<Predicate<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Predicate<'tcx>>>, NoSolution>>>

Do not call this query directly: part of the Normalize type-op

type_op_normalize_poly_fn_sig: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<Binder<'tcx, FnSig<'tcx>>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Binder<'tcx, FnSig<'tcx>>>>, NoSolution>>>

Do not call this query directly: part of the Normalize type-op

type_op_normalize_fn_sig: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<FnSig<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, FnSig<'tcx>>>, NoSolution>>>

Do not call this query directly: part of the Normalize type-op

subst_and_check_impossible_predicates: QueryCacheStore<DefaultCache<(DefId, &'tcx List<GenericArg<'tcx>>), bool>>

[query description - consider adding a doc-comment!] impossible substituted predicates: tcx.def_path_str(key.0)

method_autoderef_steps: QueryCacheStore<DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, MethodAutoderefStepsResult<'tcx>>>

[query description - consider adding a doc-comment!] computing autoderef types for {:?}

supported_target_features: QueryCacheStore<ArenaCache<'tcx, CrateNum, HashMap<String, Option<Symbol>, BuildHasherDefault<FxHasher>>>>

[query description - consider adding a doc-comment!] looking up supported target features

instance_def_size_estimate: QueryCacheStore<DefaultCache<InstanceDef<'tcx>, usize>>

Get an estimate of the size of an InstanceDef based on its MIR for CGU partitioning.

features_query: QueryCacheStore<DefaultCache<(), &'tcx Features>>

[query description - consider adding a doc-comment!] looking up enabled feature gates

resolve_instance: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, (DefId, &'tcx List<GenericArg<'tcx>>)>, Result<Option<Instance<'tcx>>, ErrorReported>>>

Attempt to resolve the given DefId to an Instance, for the given generics args (SubstsRef), returning one of:

resolve_instance_of_const_arg: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, (LocalDefId, DefId, &'tcx List<GenericArg<'tcx>>)>, Result<Option<Instance<'tcx>>, ErrorReported>>>

[query description - consider adding a doc-comment!] resolving instance of the const argument ty :: Instance :: new(key.value.0.to_def_id(), key.value.2)

normalize_opaque_types: QueryCacheStore<DefaultCache<&'tcx List<Predicate<'tcx>>, &'tcx List<Predicate<'tcx>>>>

[query description - consider adding a doc-comment!] normalizing opaque types in {:?}

conservative_is_privately_uninhabited: QueryCacheStore<DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

Checks whether a type is definitely uninhabited. This is conservative: for some types that are uninhabited we return false, but we only return true for types that are definitely uninhabited. ty.conservative_is_privately_uninhabited implies that any value of type ty will be Abi::Uninhabited. (Note that uninhabited types may have nonzero size, to account for partial initialisation. See #49298 for details.)

limits: QueryCacheStore<DefaultCache<(), Limits>>

[query description - consider adding a doc-comment!] looking up limits

diagnostic_hir_wf_check: QueryCacheStore<DefaultCache<(Predicate<'tcx>, WellFormedLoc), Option<ObligationCause<'tcx>>>>

Performs an HIR-based well-formed check on the item with the given HirId. If we get an Unimplemented error that matches the provided Predicate, return the cause of the newly created obligation.

This is only used by error-reporting code to get a better cause (in particular, a better span) for an existing error. Therefore, it is best-effort, and may never handle all of the cases that the normal ty::Ty-based wfcheck does. This is fine, because the ty::Ty-based wfcheck is always run.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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: 12048 bytes