Struct clippy_utils::rustc_ty::query::QueryCaches[−][src]

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

Fields

trigger_delay_span_bug: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, ()>>::Cache>

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

resolutions: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), &'tcx ResolverOutputs>>::Cache>

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

source_span: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, Span>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(), &'tcx Crate<'tcx>>>::Cache>

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<<ArenaCacheSelector<'tcx> as CacheSelector<LocalDefId, ModuleItems>>::Cache>

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<<DefaultCacheSelector as CacheSelector<LocalDefId, Option<Owner<'tcx>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<LocalDefId, HirId>>::Cache>

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<<DefaultCacheSelector as CacheSelector<LocalDefId, Option<&'tcx OwnerNodes<'tcx>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<LocalDefId, &'tcx AttributeMap<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<LocalDefId, Option<DefId>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, &'tcx Const<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, &'tcx List<GenericArg<'tcx>>>>::Cache>

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

type_of: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx TyS<'tcx>>>::Cache>

Records the type of every item.

analysis: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), Result<(), ErrorReported>>>::Cache>

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

generics_of: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<DefId, Generics>>::Cache>

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

predicates_of: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, GenericPredicates<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, &'tcx [(Predicate<'tcx>, Span)]>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, &'tcx List<Predicate<'tcx>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<CrateNum, Rc<Vec<NativeLib, Global>>>>::Cache>

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

lint_levels: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<(), LintLevelMap>>::Cache>

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

parent_module_from_def_id: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, LocalDefId>>::Cache>

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

expn_that_defined: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, ExpnId>>::Cache>

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

is_panic_runtime: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, bool>>::Cache>

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

thir_body: QueryCacheStore<<DefaultCacheSelector as CacheSelector<WithOptConstParam<LocalDefId>, (&'tcx Steal<Thir<'tcx>>, ExprId)>>::Cache>

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

thir_tree: QueryCacheStore<<DefaultCacheSelector as CacheSelector<WithOptConstParam<LocalDefId>, String>>::Cache>

Create a THIR tree for debugging.

mir_keys: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<(), HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, ConstQualifs>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(LocalDefId, DefId), ConstQualifs>>::Cache>

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

mir_built: QueryCacheStore<<DefaultCacheSelector as CacheSelector<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>::Cache>

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

mir_const: QueryCacheStore<<DefaultCacheSelector as CacheSelector<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, Result<Option<&'tcx [Node<'tcx>]>, ErrorReported>>>::Cache>

Try to build an abstract representation of the given constant.

thir_abstract_const_of_const_arg: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(LocalDefId, DefId), Result<Option<&'tcx [Node<'tcx>]>, ErrorReported>>>::Cache>

Try to build an abstract representation of the given constant.

try_unify_abstract_consts: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(Unevaluated<'tcx, ()>, Unevaluated<'tcx, ()>), bool>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>::Cache>

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

mir_for_ctfe: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx Body<'tcx>>>::Cache>

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

mir_for_ctfe_of_const_arg: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(LocalDefId, DefId), &'tcx Body<'tcx>>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<WithOptConstParam<LocalDefId>, (&'tcx Steal<Body<'tcx>>, &'tcx Steal<IndexVec<Promoted, Body<'tcx>>>)>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<(LocalDefId, DefId), Vec<Symbol, Global>>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<DefId, &'tcx Body<'tcx>>>::Cache>

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<<ArenaCacheSelector<'tcx> as CacheSelector<InstanceDef<'tcx>, CoverageInfo>>::Cache>

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

covered_file_name: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<DefId, Option<Symbol>>>::Cache>

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

covered_code_regions: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<DefId, Vec<&'tcx CodeRegion, Global>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, &'tcx IndexVec<Promoted, Body<'tcx>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(LocalDefId, DefId), &'tcx IndexVec<Promoted, Body<'tcx>>>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<&'tcx TyS<'tcx>, &'tcx TyS<'tcx>>>::Cache>

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<<ArenaCacheSelector<'tcx> as CacheSelector<CrateNum, HashMap<DefId, String, BuildHasherDefault<FxHasher>>>>::Cache>

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

predicates_defined_on: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, GenericPredicates<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<LocalDefId, GenericPredicates<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, GenericPredicates<'tcx>>>::Cache>

Returns the predicates written explicitly by the user.

inferred_outlives_of: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx [(Predicate<'tcx>, Span)]>>::Cache>

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

super_predicates_of: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, GenericPredicates<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(DefId, Option<Ident>), GenericPredicates<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(DefId, LocalDefId, Ident), GenericPredicates<'tcx>>>::Cache>

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

trait_def: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<DefId, TraitDef>>::Cache>

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

adt_def: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx AdtDef>>::Cache>

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

adt_destructor: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<Destructor>>>::Cache>

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

adt_sized_constraint: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, AdtSizedConstraint<'tcx>>>::Cache>

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

adt_dtorck_constraint: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Result<DtorckConstraint<'tcx>, NoSolution>>>::Cache>

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

is_const_fn_raw: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, IsAsync>>::Cache>

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

is_promotable_const_fn: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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

static_mutability: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<Mutability>>>::Cache>

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

generator_kind: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<GeneratorKind>>>::Cache>

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

crate_variances: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<(), CrateVariancesMap<'tcx>>>::Cache>

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

variances_of: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx [Variance]>>::Cache>

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

inferred_outlives_crate: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<(), CratePredicatesMap<'tcx>>>::Cache>

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

associated_item_def_ids: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx [DefId]>>::Cache>

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

associated_item: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<DefId, AssocItem>>::Cache>

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

associated_items: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<DefId, AssocItems<'tcx>>>::Cache>

Collects the associated items defined on a trait or impl.

impl_trait_ref: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<TraitRef<'tcx>>>>::Cache>

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

impl_polarity: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, ImplPolarity>>::Cache>

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

issue33140_self_ty: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<&'tcx TyS<'tcx>>>>::Cache>

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

inherent_impls: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx [DefId]>>::Cache>

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<<DefaultCacheSelector as CacheSelector<LocalDefId, &'tcx UnsafetyCheckResult>>::Cache>

The result of unsafety-checking this LocalDefId.

unsafety_check_result_for_const_arg: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(LocalDefId, DefId), &'tcx UnsafetyCheckResult>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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

thir_check_unsafety_for_const_arg: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(LocalDefId, DefId), ()>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, Binder<'tcx, FnSig<'tcx>>>>::Cache>

Computes the signature of the function.

lint_mod: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

Performs lint checking for the module.

check_mod_attrs: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

Checks the attributes in the module.

check_mod_unstable_api_usage: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

Checks for uses of unstable APIs in the module.

check_mod_const_bodies: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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

check_mod_loops: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

Checks the loops in the module.

check_mod_naked_functions: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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

check_mod_item_types: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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

check_mod_privacy: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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

check_mod_intrinsics: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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

check_mod_liveness: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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

check_mod_impl_wf: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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

collect_mod_item_types: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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

coerce_unsized_info: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, CoerceUnsizedInfo>>::Cache>

Caches CoerceUnsized kinds for impls on custom types.

typeck_item_bodies: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), ()>>::Cache>

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

typeck: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, &'tcx TypeckResults<'tcx>>>::Cache>

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

typeck_const_arg: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(LocalDefId, DefId), &'tcx TypeckResults<'tcx>>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<LocalDefId, &'tcx TypeckResults<'tcx>>>::Cache>

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

used_trait_imports: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, &'tcx HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>::Cache>

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

has_typeck_results: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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

coherent_trait: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, ()>>::Cache>

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

mir_borrowck: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, &'tcx BorrowCheckResult<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(LocalDefId, DefId), &'tcx BorrowCheckResult<'tcx>>>::Cache>

[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<<ArenaCacheSelector<'tcx> as CacheSelector<(), CrateInherentImpls>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(), ()>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(), &'tcx [LocalDefId]>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(Instance<'tcx>, LocalDefId), bool>>::Cache>

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<<DefaultCacheSelector as CacheSelector<InstanceDef<'tcx>, &'tcx [(DefId, &'tcx List<GenericArg<'tcx>>)]>>::Cache>

Obtain all the calls into other local functions

eval_to_allocation_raw: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, GlobalId<'tcx>>, Result<ConstAlloc<'tcx>, ErrorHandled>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, GlobalId<'tcx>>, Result<ConstValue<'tcx>, ErrorHandled>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, ConstAlloc<'tcx>>, Option<ValTree<'tcx>>>>::Cache>

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

destructure_const: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx Const<'tcx>>, DestructuredConst<'tcx>>>::Cache>

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

deref_const: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx Const<'tcx>>, &'tcx Const<'tcx>>>::Cache>

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

const_caller_location: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(Symbol, u32, u32), ConstValue<'tcx>>>::Cache>

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

lit_to_const: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LitToConstInput<'tcx>, Result<&'tcx Const<'tcx>, LitToConstError>>>::Cache>

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

check_match: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, ()>>::Cache>

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

privacy_access_levels: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), &'tcx AccessLevels<LocalDefId>>>::Cache>

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

check_private_in_public: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), ()>>::Cache>

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

reachable_set: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<(), HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>::Cache>

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

region_scope_tree: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx ScopeTree>>::Cache>

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<<ArenaCacheSelector<'tcx> as CacheSelector<InstanceDef<'tcx>, Body<'tcx>>>::Cache>

Generates a MIR body for the shim.

symbol_name: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Instance<'tcx>, SymbolName<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, Option<DefKind>>>::Cache>

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

def_span: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Span>>::Cache>

Gets the span for the definition.

def_ident_span: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<Span>>>::Cache>

Gets the span for the identifier of the definition.

lookup_stability: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<&'tcx Stability>>>::Cache>

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

lookup_const_stability: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<&'tcx ConstStability>>>::Cache>

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

should_inherit_track_caller: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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

lookup_deprecation_entry: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<DeprecationEntry>>>::Cache>

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

item_attrs: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx [Attribute]>>::Cache>

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

codegen_fn_attrs: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<DefId, CodegenFnAttrs>>::Cache>

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

fn_arg_names: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx [Ident]>>::Cache>

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

rendered_const: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, String>>::Cache>

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

impl_parent: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<DefId>>>::Cache>

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

trait_of_item: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<DefId>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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

is_mir_available: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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

own_existential_vtable_entries: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Binder<'tcx, ExistentialTraitRef<'tcx>>, &'tcx [DefId]>>::Cache>

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

vtable_entries: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Binder<'tcx, TraitRef<'tcx>>, &'tcx [VtblEntry<'tcx>]>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<(&'tcx TyS<'tcx>, &'tcx TyS<'tcx>), Option<usize>>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<(&'tcx TyS<'tcx>, Option<Binder<'tcx, ExistentialTraitRef<'tcx>>>), AllocId>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<(ParamEnv<'tcx>, Binder<'tcx, TraitRef<'tcx>>), Result<ImplSource<'tcx, ()>, ErrorReported>>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<(), &'tcx BTreeMap<DefId, Vec<LocalDefId, Global>>>>::Cache>

Return all impl blocks in the current crate.

trait_impls_of: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<DefId, TraitImpls>>::Cache>

Given a trait trait_id, return all known impl blocks.

specialization_graph_of: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<DefId, Graph>>::Cache>

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

object_safety_violations: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx [ObjectSafetyViolation]>>::Cache>

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

param_env: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, ParamEnv<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, ParamEnv<'tcx>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>::Cache>

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<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>::Cache>

Query backing TyS::is_sized.

is_freeze_raw: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>::Cache>

Query backing TyS::is_freeze.

is_unpin_raw: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>::Cache>

Query backing TyS::is_unpin.

needs_drop_raw: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>::Cache>

Query backing TyS::needs_drop.

has_significant_drop_raw: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>::Cache>

Query backing TyS::has_significant_drop_raw.

has_structural_eq_impls: QueryCacheStore<<DefaultCacheSelector as CacheSelector<&'tcx TyS<'tcx>, bool>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, Result<&'tcx List<&'tcx TyS<'tcx>>, AlwaysRequiresDrop>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, Result<&'tcx List<&'tcx TyS<'tcx>>, AlwaysRequiresDrop>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, Result<TyAndLayout<'tcx, &'tcx TyS<'tcx>>, LayoutError<'tcx>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, (Binder<'tcx, FnSig<'tcx>>, &'tcx List<&'tcx TyS<'tcx>>)>, Result<&'tcx FnAbi<'tcx, &'tcx TyS<'tcx>>, FnAbiError<'tcx>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, (Instance<'tcx>, &'tcx List<&'tcx TyS<'tcx>>)>, Result<&'tcx FnAbi<'tcx, &'tcx TyS<'tcx>>, FnAbiError<'tcx>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<CrateNum, &'tcx [(CrateNum, LinkagePreference)]>>::Cache>

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

dependency_formats: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), Rc<Vec<(CrateType, Vec<Linkage, Global>), Global>>>>::Cache>

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

is_compiler_builtins: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, bool>>::Cache>

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

has_global_allocator: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, bool>>::Cache>

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

has_panic_handler: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, bool>>::Cache>

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

is_profiler_runtime: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, bool>>::Cache>

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

panic_strategy: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, PanicStrategy>>::Cache>

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

panic_in_drop_strategy: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, PanicStrategy>>::Cache>

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

is_no_builtins: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, bool>>::Cache>

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

symbol_mangling_version: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, SymbolManglingVersion>>::Cache>

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

extern_crate: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<&'tcx ExternCrate>>>::Cache>

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

specializes: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(DefId, DefId), bool>>::Cache>

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

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

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

module_exports: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, Option<&'tcx [Export]>>>::Cache>

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

impl_defaultness: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Defaultness>>::Cache>

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

impl_constness: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Constness>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<LocalDefId, ()>>::Cache>

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

reachable_non_generics: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<CrateNum, HashMap<DefId, SymbolExportLevel, BuildHasherDefault<FxHasher>>>>::Cache>

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

is_reachable_non_generic: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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

is_unreachable_local_definition: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, bool>>::Cache>

[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<<ArenaCacheSelector<'tcx> as CacheSelector<(), HashMap<DefId, HashMap<&'tcx List<GenericArg<'tcx>>, CrateNum, BuildHasherDefault<FxHasher>>, BuildHasherDefault<FxHasher>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<DefId, Option<&'tcx HashMap<&'tcx List<GenericArg<'tcx>>, CrateNum, BuildHasherDefault<FxHasher>>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<&'tcx List<GenericArg<'tcx>>, Option<CrateNum>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<CrateNum, Rc<HashMap<DefId, ForeignModule, BuildHasherDefault<FxHasher>>>>>::Cache>

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

entry_fn: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), Option<(DefId, EntryFnType)>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(), Option<LocalDefId>>>::Cache>

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

crate_hash: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, Svh>>::Cache>

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

crate_host_hash: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, Option<Svh>>>::Cache>

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

extra_filename: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, String>>::Cache>

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

crate_extern_paths: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, Vec<PathBuf, Global>>>::Cache>

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

implementations_of_trait: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(CrateNum, DefId), &'tcx [(DefId, Option<SimplifiedTypeGen<DefId>>)]>>::Cache>

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<<DefaultCacheSelector as CacheSelector<CrateNum, &'tcx [(DefId, Option<SimplifiedTypeGen<DefId>>)]>>::Cache>

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

is_dllimport_foreign_item: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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

is_statically_included_foreign_item: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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

native_library_kind: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<NativeLibKind>>>::Cache>

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

resolve_lifetimes_trait_definition: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<LocalDefId, ResolveLifetimes>>::Cache>

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<<ArenaCacheSelector<'tcx> as CacheSelector<LocalDefId, ResolveLifetimes>>::Cache>

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<<DefaultCacheSelector as CacheSelector<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Region, BuildHasherDefault<FxHasher>>>>>::Cache>

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

is_late_bound_map: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, Option<(LocalDefId, &'tcx HashSet<ItemLocalId, BuildHasherDefault<FxHasher>>)>>>::Cache>

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

object_lifetime_defaults_map: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, Option<Vec<Set1<Region>, Global>>>>::Cache>

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<<DefaultCacheSelector as CacheSelector<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Vec<BoundVariableKind, Global>, BuildHasherDefault<FxHasher>>>>>::Cache>

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

lifetime_scope_map: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, Option<HashMap<ItemLocalId, LifetimeScopeForPath, BuildHasherDefault<FxHasher>>>>>::Cache>

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

visibility: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Visibility>>::Cache>

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

type_uninhabited_from: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, DefIdForest>>::Cache>

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<<DefaultCacheSelector as CacheSelector<CrateNum, CrateDepKind>>::Cache>

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

crate_name: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, Symbol>>::Cache>

Gets the name of the crate.

item_children: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, &'tcx [Export]>>::Cache>

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

extern_mod_stmt_cnum: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, Option<CrateNum>>>::Cache>

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

get_lib_features: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<(), LibFeatures>>::Cache>

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

defined_lib_features: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, &'tcx [(Symbol, Option<Symbol>)]>>::Cache>

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

get_lang_items: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<(), LanguageItems>>::Cache>

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

all_diagnostic_items: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<(), DiagnosticItems>>::Cache>

Returns all diagnostic items defined in all crates.

defined_lang_items: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, &'tcx [(DefId, usize)]>>::Cache>

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

diagnostic_items: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<CrateNum, DiagnosticItems>>::Cache>

Returns the diagnostic items defined in a crate.

missing_lang_items: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, &'tcx [LangItem]>>::Cache>

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

visible_parent_map: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<(), HashMap<DefId, DefId, BuildHasherDefault<FxHasher>>>>::Cache>

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

trimmed_def_paths: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<(), HashMap<DefId, Symbol, BuildHasherDefault<FxHasher>>>>::Cache>

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

missing_extern_crate_item: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, bool>>::Cache>

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

used_crate_source: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, Rc<CrateSource>>>::Cache>

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

postorder_cnums: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), &'tcx [CrateNum]>>::Cache>

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

is_private_dep: QueryCacheStore<<DefaultCacheSelector as CacheSelector<CrateNum, bool>>::Cache>

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

allocator_kind: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), Option<AllocatorKind>>>::Cache>

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

upvars_mentioned: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, Option<&'tcx IndexMap<HirId, Upvar, BuildHasherDefault<FxHasher>>>>>::Cache>

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

maybe_unused_trait_import: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, bool>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<(), &'tcx [(LocalDefId, Span)]>>::Cache>

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

names_imported_by_glob_use: QueryCacheStore<<DefaultCacheSelector as CacheSelector<LocalDefId, &'tcx HashSet<Symbol, BuildHasherDefault<FxHasher>>>>::Cache>

[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<<ArenaCacheSelector<'tcx> as CacheSelector<(), Index<'tcx>>>::Cache>

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

crates: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), &'tcx [CrateNum]>>::Cache>

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

all_traits: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), &'tcx [DefId]>>::Cache>

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<<DefaultCacheSelector as CacheSelector<CrateNum, &'tcx [(ExportedSymbol<'tcx>, SymbolExportLevel)]>>::Cache>

The list of symbols exported from the given crate.

collect_and_partition_mono_items: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), (&'tcx HashSet<DefId, BuildHasherDefault<FxHasher>>, &'tcx [CodegenUnit<'tcx>])>>::Cache>

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

is_codegened_item: QueryCacheStore<<DefaultCacheSelector as CacheSelector<DefId, bool>>::Cache>

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

codegened_and_inlined_items: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), &'tcx HashSet<DefId, BuildHasherDefault<FxHasher>>>>::Cache>

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

codegen_unit: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Symbol, &'tcx CodegenUnit<'tcx>>>::Cache>

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

unused_generic_params: QueryCacheStore<<DefaultCacheSelector as CacheSelector<InstanceDef<'tcx>, FiniteBitSet<u32>>>::Cache>

[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<<DefaultCacheSelector as CacheSelector<(), OptLevel>>::Cache>

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

output_filenames: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), Arc<OutputFilenames>>>::Cache>

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

normalize_projection_ty: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, ProjectionTy<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, NormalizationResult<'tcx>>>, NoSolution>>>::Cache>

Do not call this query directly: invoke normalize instead.

normalize_generic_arg_after_erasing_regions: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, GenericArg<'tcx>>, GenericArg<'tcx>>>::Cache>

Do not call this query directly: invoke normalize_erasing_regions instead.

normalize_mir_const_after_erasing_regions: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, ConstantKind<'tcx>>, ConstantKind<'tcx>>>::Cache>

Do not call this query directly: invoke normalize_erasing_regions instead.

implied_outlives_bounds: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Vec<OutlivesBound<'tcx>, Global>>>, NoSolution>>>::Cache>

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

dropck_outlives: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, DropckOutlivesResult<'tcx>>>, NoSolution>>>::Cache>

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

evaluate_obligation: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, Predicate<'tcx>>>, Result<EvaluationResult, OverflowError>>>::Cache>

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

evaluate_goal: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ChalkEnvironmentAndGoal<'tcx>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>::Cache>

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

type_op_ascribe_user_type: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, AscribeUserType<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>::Cache>

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

type_op_eq: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, Eq<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>::Cache>

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

type_op_subtype: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, Subtype<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>::Cache>

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

type_op_prove_predicate: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, ProvePredicate<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>::Cache>

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

type_op_normalize_ty: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<&'tcx TyS<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, &'tcx TyS<'tcx>>>, NoSolution>>>::Cache>

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

type_op_normalize_predicate: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<Predicate<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Predicate<'tcx>>>, NoSolution>>>::Cache>

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

type_op_normalize_poly_fn_sig: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<Binder<'tcx, FnSig<'tcx>>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Binder<'tcx, FnSig<'tcx>>>>, NoSolution>>>::Cache>

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

type_op_normalize_fn_sig: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<FnSig<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, FnSig<'tcx>>>, NoSolution>>>::Cache>

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

subst_and_check_impossible_predicates: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(DefId, &'tcx List<GenericArg<'tcx>>), bool>>::Cache>

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

method_autoderef_steps: QueryCacheStore<<DefaultCacheSelector as CacheSelector<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, MethodAutoderefStepsResult<'tcx>>>::Cache>

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

supported_target_features: QueryCacheStore<<ArenaCacheSelector<'tcx> as CacheSelector<CrateNum, HashMap<String, Option<Symbol>, BuildHasherDefault<FxHasher>>>>::Cache>

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

instance_def_size_estimate: QueryCacheStore<<DefaultCacheSelector as CacheSelector<InstanceDef<'tcx>, usize>>::Cache>

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

features_query: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(), &'tcx Features>>::Cache>

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

resolve_instance: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, (DefId, &'tcx List<GenericArg<'tcx>>)>, Result<Option<Instance<'tcx>>, ErrorReported>>>::Cache>

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

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

[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<<DefaultCacheSelector as CacheSelector<&'tcx List<Predicate<'tcx>>, &'tcx List<Predicate<'tcx>>>>::Cache>

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

conservative_is_privately_uninhabited: QueryCacheStore<<DefaultCacheSelector as CacheSelector<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>::Cache>

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<<DefaultCacheSelector as CacheSelector<(), Limits>>::Cache>

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

diagnostic_hir_wf_check: QueryCacheStore<<DefaultCacheSelector as CacheSelector<(Predicate<'tcx>, WellFormedLoc), Option<ObligationCause<'tcx>>>>::Cache>

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