[−][src]Struct rustc_middle::ty::query::Queries

pub struct Queries<'tcx> {
    pub(crate) on_disk_cache: Option<OnDiskCache<'tcx>>,
    providers: IndexVec<CrateNum, Providers>,
    fallback_extern_providers: Box<Providers>,
    trigger_delay_span_bug: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ()>>,
    hir_crate: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx Crate<'tcx>>>,
    index_hir: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx IndexedHir<'tcx>>>,
    hir_module_items: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx ModuleItems>>,
    hir_owner: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx Owner<'tcx>>>>,
    hir_owner_nodes: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx OwnerNodes<'tcx>>>>,
    opt_const_param_of: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<DefId>>>,
    type_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx TyS<'tcx>>>,
    analysis: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Result<(), ErrorReported>>>,
    generics_of: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, Generics>>,
    predicates_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, GenericPredicates<'tcx>>>,
    explicit_item_bounds: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [(Predicate<'tcx>, Span)]>>,
    item_bounds: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx List<Predicate<'tcx>>>>,
    projection_ty_from_predicates: QueryState<DepKind, Query<'tcx>, DefaultCache<(DefId, DefId), Option<ProjectionTy<'tcx>>>>,
    native_libraries: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Rc<Vec<NativeLib, Global>>>>,
    lint_levels: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, LintLevelMap>>,
    parent_module_from_def_id: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, LocalDefId>>,
    expn_that_defined: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ExpnId>>,
    is_panic_runtime: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>,
    mir_keys: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>,
    mir_const_qualif: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ConstQualifs>>,
    mir_const_qualif_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), ConstQualifs>>,
    mir_built: QueryState<DepKind, Query<'tcx>, DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>,
    mir_const: QueryState<DepKind, Query<'tcx>, DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>,
    mir_abstract_const: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Result<Option<&'tcx [Node<'tcx>]>, ErrorReported>>>,
    mir_abstract_const_of_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), Result<Option<&'tcx [Node<'tcx>]>, ErrorReported>>>,
    try_unify_abstract_consts: QueryState<DepKind, Query<'tcx>, DefaultCache<((WithOptConstParam<DefId>, &'tcx List<GenericArg<'tcx>>), (WithOptConstParam<DefId>, &'tcx List<GenericArg<'tcx>>)), bool>>,
    mir_drops_elaborated_and_const_checked: QueryState<DepKind, Query<'tcx>, DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>,
    mir_promoted: QueryState<DepKind, Query<'tcx>, DefaultCache<WithOptConstParam<LocalDefId>, (&'tcx Steal<Body<'tcx>>, &'tcx Steal<IndexVec<Promoted, Body<'tcx>>>)>>,
    optimized_mir: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx Body<'tcx>>>,
    optimized_mir_of_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), &'tcx Body<'tcx>>>,
    coverageinfo: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, CoverageInfo>>,
    covered_file_name: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, Option<Symbol>>>,
    covered_code_regions: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, Vec<&'tcx CodeRegion, Global>>>,
    promoted_mir: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx IndexVec<Promoted, Body<'tcx>>>>,
    promoted_mir_of_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), &'tcx IndexVec<Promoted, Body<'tcx>>>>,
    erase_regions_ty: QueryState<DepKind, Query<'tcx>, DefaultCache<&'tcx TyS<'tcx>, &'tcx TyS<'tcx>>>,
    wasm_import_module_map: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<DefId, String, BuildHasherDefault<FxHasher>>>>,
    predicates_defined_on: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, GenericPredicates<'tcx>>>,
    trait_explicit_predicates_and_bounds: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, GenericPredicates<'tcx>>>,
    explicit_predicates_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, GenericPredicates<'tcx>>>,
    inferred_outlives_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [(Predicate<'tcx>, Span)]>>,
    super_predicates_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, GenericPredicates<'tcx>>>,
    type_param_predicates: QueryState<DepKind, Query<'tcx>, DefaultCache<(DefId, LocalDefId), GenericPredicates<'tcx>>>,
    trait_def: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, TraitDef>>,
    adt_def: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx AdtDef>>,
    adt_destructor: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<Destructor>>>,
    adt_sized_constraint: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, AdtSizedConstraint<'tcx>>>,
    adt_dtorck_constraint: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Result<DtorckConstraint<'tcx>, NoSolution>>>,
    is_const_fn_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    is_const_impl_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    asyncness: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, IsAsync>>,
    is_promotable_const_fn: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    is_foreign_item: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    static_mutability: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<Mutability>>>,
    generator_kind: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<GeneratorKind>>>,
    crate_variances: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, CrateVariancesMap<'tcx>>>,
    variances_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [Variance]>>,
    inferred_outlives_crate: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, CratePredicatesMap<'tcx>>>,
    associated_item_def_ids: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [DefId]>>,
    associated_item: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, AssocItem>>,
    associated_items: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, AssociatedItems<'tcx>>>,
    impl_trait_ref: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<TraitRef<'tcx>>>>,
    impl_polarity: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ImplPolarity>>,
    issue33140_self_ty: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<&'tcx TyS<'tcx>>>>,
    inherent_impls: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [DefId]>>,
    unsafety_check_result: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx UnsafetyCheckResult>>,
    unsafety_check_result_for_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), &'tcx UnsafetyCheckResult>>,
    unsafe_derive_on_repr_packed: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    fn_sig: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Binder<FnSig<'tcx>>>>,
    lint_mod: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_mod_attrs: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_mod_unstable_api_usage: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_mod_const_bodies: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_mod_loops: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_mod_naked_functions: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_mod_item_types: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_mod_privacy: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_mod_intrinsics: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_mod_liveness: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_mod_impl_wf: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    collect_mod_item_types: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    coerce_unsized_info: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, CoerceUnsizedInfo>>,
    typeck_item_bodies: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, ()>>,
    typeck: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx TypeckResults<'tcx>>>,
    typeck_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), &'tcx TypeckResults<'tcx>>>,
    diagnostic_only_typeck: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx TypeckResults<'tcx>>>,
    used_trait_imports: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>,
    has_typeck_results: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    coherent_trait: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ()>>,
    mir_borrowck: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx BorrowCheckResult<'tcx>>>,
    mir_borrowck_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), &'tcx BorrowCheckResult<'tcx>>>,
    crate_inherent_impls: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, CrateInherentImpls>>,
    crate_inherent_impls_overlap_check: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, ()>>,
    eval_to_allocation_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, GlobalId<'tcx>>, Result<ConstAlloc<'tcx>, ErrorHandled>>>,
    eval_to_const_value_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, GlobalId<'tcx>>, Result<ConstValue<'tcx>, ErrorHandled>>>,
    destructure_const: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx Const<'tcx>>, DestructuredConst<'tcx>>>,
    deref_const: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx Const<'tcx>>, &'tcx Const<'tcx>>>,
    const_caller_location: QueryState<DepKind, Query<'tcx>, DefaultCache<(Symbol, u32, u32), ConstValue<'tcx>>>,
    lit_to_const: QueryState<DepKind, Query<'tcx>, DefaultCache<LitToConstInput<'tcx>, Result<&'tcx Const<'tcx>, LitToConstError>>>,
    check_match: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ()>>,
    privacy_access_levels: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx AccessLevels<HirId>>>,
    check_private_in_public: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, ()>>,
    reachable_set: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>,
    region_scope_tree: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx ScopeTree>>,
    mir_shims: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, InstanceDef<'tcx>, Body<'tcx>>>,
    symbol_name: QueryState<DepKind, Query<'tcx>, DefaultCache<Instance<'tcx>, SymbolName<'tcx>>>,
    def_kind: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, DefKind>>,
    def_span: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Span>>,
    lookup_stability: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<&'tcx Stability>>>,
    lookup_const_stability: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<&'tcx ConstStability>>>,
    lookup_deprecation_entry: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<DeprecationEntry>>>,
    item_attrs: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [Attribute]>>,
    codegen_fn_attrs: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, CodegenFnAttrs>>,
    fn_arg_names: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [Ident]>>,
    rendered_const: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, String>>,
    impl_parent: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<DefId>>>,
    trait_of_item: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<DefId>>>,
    is_mir_available: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    vtable_methods: QueryState<DepKind, Query<'tcx>, DefaultCache<Binder<TraitRef<'tcx>>, &'tcx [Option<(DefId, &'tcx List<GenericArg<'tcx>>)>]>>,
    codegen_fulfill_obligation: QueryState<DepKind, Query<'tcx>, DefaultCache<(ParamEnv<'tcx>, Binder<TraitRef<'tcx>>), Result<ImplSource<'tcx, ()>, ErrorReported>>>,
    all_local_trait_impls: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx BTreeMap<DefId, Vec<HirId, Global>>>>,
    trait_impls_of: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, TraitImpls>>,
    specialization_graph_of: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, Graph>>,
    object_safety_violations: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [ObjectSafetyViolation]>>,
    param_env: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ParamEnv<'tcx>>>,
    param_env_reveal_all_normalized: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ParamEnv<'tcx>>>,
    is_copy_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>,
    is_sized_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>,
    is_freeze_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>,
    needs_drop_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>,
    has_structural_eq_impls: QueryState<DepKind, Query<'tcx>, DefaultCache<&'tcx TyS<'tcx>, bool>>,
    adt_drop_tys: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Result<&'tcx List<&'tcx TyS<'tcx>>, AlwaysRequiresDrop>>>,
    layout_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, Result<&'tcx Layout, LayoutError<'tcx>>>>,
    dylib_dependency_formats: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [(CrateNum, LinkagePreference)]>>,
    dependency_formats: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Rc<Vec<(CrateType, Vec<Linkage, Global>), Global>>>>,
    is_compiler_builtins: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>,
    has_global_allocator: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>,
    has_panic_handler: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>,
    is_profiler_runtime: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>,
    panic_strategy: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, PanicStrategy>>,
    is_no_builtins: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>,
    symbol_mangling_version: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, SymbolManglingVersion>>,
    extern_crate: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<&'tcx ExternCrate>>>,
    specializes: QueryState<DepKind, Query<'tcx>, DefaultCache<(DefId, DefId), bool>>,
    in_scope_traits_map: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, StableVec<TraitCandidate>, BuildHasherDefault<FxHasher>>>>>,
    module_exports: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx [Export<LocalDefId>]>>>,
    impl_defaultness: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Defaultness>>,
    check_item_well_formed: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_trait_item_well_formed: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    check_impl_item_well_formed: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>,
    reachable_non_generics: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<DefId, SymbolExportLevel, BuildHasherDefault<FxHasher>>>>,
    is_reachable_non_generic: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    is_unreachable_local_definition: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    upstream_monomorphizations: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<DefId, HashMap<&'tcx List<GenericArg<'tcx>>, CrateNum, BuildHasherDefault<FxHasher>>, BuildHasherDefault<FxHasher>>>>,
    upstream_monomorphizations_for: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<&'tcx HashMap<&'tcx List<GenericArg<'tcx>>, CrateNum, BuildHasherDefault<FxHasher>>>>>,
    upstream_drop_glue_for: QueryState<DepKind, Query<'tcx>, DefaultCache<&'tcx List<GenericArg<'tcx>>, Option<CrateNum>>>,
    foreign_modules: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Rc<HashMap<DefId, ForeignModule, BuildHasherDefault<FxHasher>>>>>,
    entry_fn: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Option<(LocalDefId, EntryFnType)>>>,
    plugin_registrar_fn: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Option<DefId>>>,
    proc_macro_decls_static: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Option<DefId>>>,
    crate_disambiguator: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, CrateDisambiguator>>,
    crate_hash: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Svh>>,
    crate_host_hash: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Option<Svh>>>,
    original_crate_name: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Symbol>>,
    extra_filename: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, String>>,
    crate_extern_paths: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Vec<PathBuf, Global>>>,
    implementations_of_trait: QueryState<DepKind, Query<'tcx>, DefaultCache<(CrateNum, DefId), &'tcx [(DefId, Option<SimplifiedTypeGen<DefId>>)]>>,
    all_trait_implementations: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [(DefId, Option<SimplifiedTypeGen<DefId>>)]>>,
    dllimport_foreign_items: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashSet<DefId, BuildHasherDefault<FxHasher>>>>,
    is_dllimport_foreign_item: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    is_statically_included_foreign_item: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    native_library_kind: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<NativeLibKind>>>,
    link_args: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Rc<Vec<String, Global>>>>,
    resolve_lifetimes: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, ResolveLifetimes>>,
    named_region_map: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Region, BuildHasherDefault<FxHasher>>>>>,
    is_late_bound_map: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx HashSet<ItemLocalId, BuildHasherDefault<FxHasher>>>>>,
    object_lifetime_defaults_map: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Vec<Set1<Region>, Global>, BuildHasherDefault<FxHasher>>>>>,
    visibility: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Visibility>>,
    dep_kind: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, CrateDepKind>>,
    crate_name: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Symbol>>,
    item_children: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [Export<HirId>]>>,
    extern_mod_stmt_cnum: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<CrateNum>>>,
    get_lib_features: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, LibFeatures>>,
    defined_lib_features: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [(Symbol, Option<Symbol>)]>>,
    get_lang_items: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, LanguageItems>>,
    all_diagnostic_items: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<Symbol, DefId, BuildHasherDefault<FxHasher>>>>,
    defined_lang_items: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [(DefId, usize)]>>,
    diagnostic_items: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<Symbol, DefId, BuildHasherDefault<FxHasher>>>>,
    missing_lang_items: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [LangItem]>>,
    visible_parent_map: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<DefId, DefId, BuildHasherDefault<FxHasher>>>>,
    trimmed_def_paths: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<DefId, Symbol, BuildHasherDefault<FxHasher>>>>,
    missing_extern_crate_item: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>,
    used_crate_source: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Rc<CrateSource>>>,
    postorder_cnums: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [CrateNum]>>,
    upvars_mentioned: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<&'tcx IndexMap<HirId, Upvar, BuildHasherDefault<FxHasher>>>>>,
    maybe_unused_trait_import: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, bool>>,
    maybe_unused_extern_crates: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [(LocalDefId, Span)]>>,
    names_imported_by_glob_use: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx HashSet<Symbol, BuildHasherDefault<FxHasher>>>>,
    stability_index: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, Index<'tcx>>>,
    all_crate_nums: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [CrateNum]>>,
    all_traits: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [DefId]>>,
    exported_symbols: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [(ExportedSymbol<'tcx>, SymbolExportLevel)]>>,
    collect_and_partition_mono_items: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, (&'tcx HashSet<DefId, BuildHasherDefault<FxHasher>>, &'tcx [CodegenUnit<'tcx>])>>,
    is_codegened_item: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>,
    codegen_unit: QueryState<DepKind, Query<'tcx>, DefaultCache<Symbol, &'tcx CodegenUnit<'tcx>>>,
    unused_generic_params: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, FiniteBitSet<u32>>>,
    backend_optimization_level: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, OptLevel>>,
    output_filenames: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Arc<OutputFilenames>>>,
    normalize_projection_ty: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, ProjectionTy<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, NormalizationResult<'tcx>>>, NoSolution>>>,
    normalize_generic_arg_after_erasing_regions: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, GenericArg<'tcx>>, GenericArg<'tcx>>>,
    implied_outlives_bounds: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Vec<OutlivesBound<'tcx>, Global>>>, NoSolution>>>,
    dropck_outlives: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, DropckOutlivesResult<'tcx>>>, NoSolution>>>,
    evaluate_obligation: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Predicate<'tcx>>>, Result<EvaluationResult, OverflowError>>>,
    evaluate_goal: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ChalkEnvironmentAndGoal<'tcx>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>,
    type_implements_trait: QueryState<DepKind, Query<'tcx>, DefaultCache<(DefId, &'tcx TyS<'tcx>, &'tcx List<GenericArg<'tcx>>, ParamEnv<'tcx>), bool>>,
    type_op_ascribe_user_type: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, AscribeUserType<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>,
    type_op_eq: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Eq<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>,
    type_op_subtype: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Subtype<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>,
    type_op_prove_predicate: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, ProvePredicate<'tcx>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, ()>>, NoSolution>>>,
    type_op_normalize_ty: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<&'tcx TyS<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, &'tcx TyS<'tcx>>>, NoSolution>>>,
    type_op_normalize_predicate: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<Predicate<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Predicate<'tcx>>>, NoSolution>>>,
    type_op_normalize_poly_fn_sig: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<Binder<FnSig<'tcx>>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Binder<FnSig<'tcx>>>>, NoSolution>>>,
    type_op_normalize_fn_sig: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Normalize<FnSig<'tcx>>>>, Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, FnSig<'tcx>>>, NoSolution>>>,
    subst_and_check_impossible_predicates: QueryState<DepKind, Query<'tcx>, DefaultCache<(DefId, &'tcx List<GenericArg<'tcx>>), bool>>,
    method_autoderef_steps: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, MethodAutoderefStepsResult<'tcx>>>,
    supported_target_features: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<String, Option<Symbol>, BuildHasherDefault<FxHasher>>>>,
    instance_def_size_estimate: QueryState<DepKind, Query<'tcx>, DefaultCache<InstanceDef<'tcx>, usize>>,
    features_query: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx Features>>,
    resolve_instance: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, (DefId, &'tcx List<GenericArg<'tcx>>)>, Result<Option<Instance<'tcx>>, ErrorReported>>>,
    resolve_instance_of_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, (LocalDefId, DefId, &'tcx List<GenericArg<'tcx>>)>, Result<Option<Instance<'tcx>>, ErrorReported>>>,
    normalize_opaque_types: QueryState<DepKind, Query<'tcx>, DefaultCache<&'tcx List<Predicate<'tcx>>, &'tcx List<Predicate<'tcx>>>>,
}

Fields

on_disk_cache: Option<OnDiskCache<'tcx>>

This provides access to the incremental compilation on-disk cache for query results. Do not access this directly. It is only meant to be used by DepGraph::try_mark_green() and the query infrastructure. This is None if we are not incremental compilation mode

providers: IndexVec<CrateNum, Providers>fallback_extern_providers: Box<Providers>trigger_delay_span_bug: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ()>>

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

hir_crate: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx Crate<'tcx>>>

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

index_hir: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx IndexedHir<'tcx>>>

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

hir_module_items: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx ModuleItems>>

The items in a module.

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

hir_owner: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx Owner<'tcx>>>>

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

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

hir_owner_nodes: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx OwnerNodes<'tcx>>>>

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

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

opt_const_param_of: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<DefId>>>

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

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

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

fn bar() {
// ^ While calling `opt_const_param_of` for other bodies returns `None`.
}
type_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx TyS<'tcx>>>

Records the type of every item.

analysis: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Result<(), ErrorReported>>>

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

generics_of: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, Generics>>

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

predicates_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, GenericPredicates<'tcx>>>

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

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

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

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

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

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

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

item_bounds: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx List<Predicate<'tcx>>>>

Elaborated version of the predicates from explicit_item_bounds.

For example:

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

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

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

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

projection_ty_from_predicates: QueryState<DepKind, Query<'tcx>, DefaultCache<(DefId, DefId), Option<ProjectionTy<'tcx>>>>

[query description - consider adding a doc-comment!] finding projection type inside predicates of tcx.def_path_str(key.0)

native_libraries: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Rc<Vec<NativeLib, Global>>>>

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

lint_levels: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, LintLevelMap>>

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

parent_module_from_def_id: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, LocalDefId>>

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

expn_that_defined: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ExpnId>>

Internal helper query. Use tcx.expansion_that_defined instead

is_panic_runtime: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>

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

mir_keys: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>

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

mir_const_qualif: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ConstQualifs>>

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

mir_const_qualif_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), ConstQualifs>>

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

mir_built: QueryState<DepKind, Query<'tcx>, DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>

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

mir_const: QueryState<DepKind, Query<'tcx>, DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>

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

See the README for the mir module for details.

mir_abstract_const: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Result<Option<&'tcx [Node<'tcx>]>, ErrorReported>>>

Try to build an abstract representation of the given constant.

mir_abstract_const_of_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), Result<Option<&'tcx [Node<'tcx>]>, ErrorReported>>>

Try to build an abstract representation of the given constant.

try_unify_abstract_consts: QueryState<DepKind, Query<'tcx>, DefaultCache<((WithOptConstParam<DefId>, &'tcx List<GenericArg<'tcx>>), (WithOptConstParam<DefId>, &'tcx List<GenericArg<'tcx>>)), bool>>

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

mir_drops_elaborated_and_const_checked: QueryState<DepKind, Query<'tcx>, DefaultCache<WithOptConstParam<LocalDefId>, &'tcx Steal<Body<'tcx>>>>

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

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

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

optimized_mir: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx Body<'tcx>>>

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

optimized_mir_of_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), &'tcx Body<'tcx>>>

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

coverageinfo: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, CoverageInfo>>

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

covered_file_name: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, Option<Symbol>>>

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

covered_code_regions: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, Vec<&'tcx CodeRegion, Global>>>

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

promoted_mir: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx IndexVec<Promoted, Body<'tcx>>>>

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

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

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

erase_regions_ty: QueryState<DepKind, Query<'tcx>, DefaultCache<&'tcx TyS<'tcx>, &'tcx TyS<'tcx>>>

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

wasm_import_module_map: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<DefId, String, BuildHasherDefault<FxHasher>>>>

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

predicates_defined_on: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, GenericPredicates<'tcx>>>

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

trait_explicit_predicates_and_bounds: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, GenericPredicates<'tcx>>>

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

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

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

becomes

trait X { type U: Copy; }

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

explicit_predicates_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, GenericPredicates<'tcx>>>

Returns the predicates written explicitly by the user.

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

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

super_predicates_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, GenericPredicates<'tcx>>>

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

type_param_predicates: QueryState<DepKind, Query<'tcx>, DefaultCache<(DefId, LocalDefId), GenericPredicates<'tcx>>>

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

trait_def: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, TraitDef>>

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

adt_def: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx AdtDef>>

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

adt_destructor: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<Destructor>>>

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

adt_sized_constraint: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, AdtSizedConstraint<'tcx>>>

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

adt_dtorck_constraint: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Result<DtorckConstraint<'tcx>, NoSolution>>>

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

is_const_fn_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

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

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

is_const_impl_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

Returns true if this is a const impl. Do not call this function manually.

This query caches the base data for the is_const_impl helper function, which also takes into account stability attributes (e.g., #[rustc_const_unstable]).

asyncness: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, IsAsync>>

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

is_promotable_const_fn: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

Returns true if calls to the function may be promoted.

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

is_foreign_item: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

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

static_mutability: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<Mutability>>>

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

generator_kind: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<GeneratorKind>>>

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

crate_variances: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, CrateVariancesMap<'tcx>>>

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

variances_of: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [Variance]>>

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

inferred_outlives_crate: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, CratePredicatesMap<'tcx>>>

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

associated_item_def_ids: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [DefId]>>

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

associated_item: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, AssocItem>>

Maps from a trait item to the trait item "descriptor".

associated_items: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, AssociatedItems<'tcx>>>

Collects the associated items defined on a trait or impl.

impl_trait_ref: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<TraitRef<'tcx>>>>

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

impl_polarity: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ImplPolarity>>

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

issue33140_self_ty: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<&'tcx TyS<'tcx>>>>

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

inherent_impls: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [DefId]>>

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

unsafety_check_result: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx UnsafetyCheckResult>>

The result of unsafety-checking this LocalDefId.

unsafety_check_result_for_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), &'tcx UnsafetyCheckResult>>

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

unsafe_derive_on_repr_packed: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

HACK: when evaluated, this reports a "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: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Binder<FnSig<'tcx>>>>

The signature of functions.

lint_mod: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

check_mod_attrs: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

Checks the attributes in the module.

check_mod_unstable_api_usage: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

[query description - consider adding a doc-comment!] checking for unstable API usage in describe_as_module(key, tcx)

check_mod_const_bodies: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

check_mod_loops: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

Checks the loops in the module.

check_mod_naked_functions: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

check_mod_item_types: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

check_mod_privacy: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

check_mod_intrinsics: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

check_mod_liveness: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

check_mod_impl_wf: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

collect_mod_item_types: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

coerce_unsized_info: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, CoerceUnsizedInfo>>

Caches CoerceUnsized kinds for impls on custom types.

typeck_item_bodies: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, ()>>

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

typeck: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx TypeckResults<'tcx>>>

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

typeck_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), &'tcx TypeckResults<'tcx>>>

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

diagnostic_only_typeck: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx TypeckResults<'tcx>>>

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

used_trait_imports: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>

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

has_typeck_results: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

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

coherent_trait: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ()>>

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

mir_borrowck: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx BorrowCheckResult<'tcx>>>

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

mir_borrowck_const_arg: QueryState<DepKind, Query<'tcx>, DefaultCache<(LocalDefId, DefId), &'tcx BorrowCheckResult<'tcx>>>

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

crate_inherent_impls: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, CrateInherentImpls>>

Gets a complete map from all types to their inherent impls. Not meant to be used directly outside of coherence. (Defined only for LOCAL_CRATE.)

crate_inherent_impls_overlap_check: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, ()>>

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

eval_to_allocation_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, GlobalId<'tcx>>, Result<ConstAlloc<'tcx>, ErrorHandled>>>

Evaluates a constant and returns the computed allocation.

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

eval_to_const_value_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, GlobalId<'tcx>>, Result<ConstValue<'tcx>, ErrorHandled>>>

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

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

destructure_const: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx Const<'tcx>>, DestructuredConst<'tcx>>>

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

deref_const: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx Const<'tcx>>, &'tcx Const<'tcx>>>

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

const_caller_location: QueryState<DepKind, Query<'tcx>, DefaultCache<(Symbol, u32, u32), ConstValue<'tcx>>>

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

lit_to_const: QueryState<DepKind, Query<'tcx>, DefaultCache<LitToConstInput<'tcx>, Result<&'tcx Const<'tcx>, LitToConstError>>>

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

check_match: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ()>>

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

privacy_access_levels: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx AccessLevels<HirId>>>

Performs part of the privacy check and computes "access levels".

check_private_in_public: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, ()>>

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

reachable_set: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashSet<LocalDefId, BuildHasherDefault<FxHasher>>>>

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

region_scope_tree: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx ScopeTree>>

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

mir_shims: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, InstanceDef<'tcx>, Body<'tcx>>>

[query description - consider adding a doc-comment!] generating MIR shim for tcx.def_path_str(key.def_id())

symbol_name: QueryState<DepKind, Query<'tcx>, DefaultCache<Instance<'tcx>, SymbolName<'tcx>>>

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

def_kind: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, DefKind>>

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

def_span: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Span>>

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

lookup_stability: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<&'tcx Stability>>>

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

lookup_const_stability: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<&'tcx ConstStability>>>

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

lookup_deprecation_entry: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<DeprecationEntry>>>

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

item_attrs: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [Attribute]>>

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

codegen_fn_attrs: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, CodegenFnAttrs>>

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

fn_arg_names: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [Ident]>>

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

rendered_const: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, String>>

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

impl_parent: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<DefId>>>

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

trait_of_item: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<DefId>>>

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

is_mir_available: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

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

vtable_methods: QueryState<DepKind, Query<'tcx>, DefaultCache<Binder<TraitRef<'tcx>>, &'tcx [Option<(DefId, &'tcx List<GenericArg<'tcx>>)>]>>

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

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

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

all_local_trait_impls: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx BTreeMap<DefId, Vec<HirId, Global>>>>

Return all impl blocks in the current crate.

To allow caching this between crates, you must pass in LOCAL_CRATE as the crate number. Passing in any other crate will cause an ICE.

trait_impls_of: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, TraitImpls>>

Given a trait trait_id, return all known impl blocks.

specialization_graph_of: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, DefId, Graph>>

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

object_safety_violations: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [ObjectSafetyViolation]>>

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

param_env: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ParamEnv<'tcx>>>

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

param_env_reveal_all_normalized: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, ParamEnv<'tcx>>>

Like param_env, but returns the ParamEnv in Reveal::Allmode. Prefer this overtcx.param_env(def_id).with_reveal_all_normalized(tcx)`, as this method is more efficient.

is_copy_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

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

is_sized_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

Query backing TyS::is_sized.

is_freeze_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

Query backing TyS::is_freeze.

needs_drop_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, bool>>

Query backing TyS::needs_drop.

has_structural_eq_impls: QueryState<DepKind, Query<'tcx>, DefaultCache<&'tcx TyS<'tcx>, bool>>

Query backing TyS::is_structural_eq_shallow.

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

adt_drop_tys: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Result<&'tcx List<&'tcx TyS<'tcx>>, AlwaysRequiresDrop>>>

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

layout_raw: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>, Result<&'tcx Layout, LayoutError<'tcx>>>>

[query description - consider adding a doc-comment!] computing layout of env.value

dylib_dependency_formats: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [(CrateNum, LinkagePreference)]>>

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

dependency_formats: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Rc<Vec<(CrateType, Vec<Linkage, Global>), Global>>>>

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

is_compiler_builtins: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>

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

has_global_allocator: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>

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

has_panic_handler: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>

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

is_profiler_runtime: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>

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

panic_strategy: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, PanicStrategy>>

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

is_no_builtins: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>

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

symbol_mangling_version: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, SymbolManglingVersion>>

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

extern_crate: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<&'tcx ExternCrate>>>

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

specializes: QueryState<DepKind, Query<'tcx>, DefaultCache<(DefId, DefId), bool>>

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

in_scope_traits_map: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, StableVec<TraitCandidate>, BuildHasherDefault<FxHasher>>>>>

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

module_exports: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx [Export<LocalDefId>]>>>

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

impl_defaultness: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Defaultness>>

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

check_item_well_formed: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

check_trait_item_well_formed: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

check_impl_item_well_formed: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, ()>>

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

reachable_non_generics: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<DefId, SymbolExportLevel, BuildHasherDefault<FxHasher>>>>

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

is_reachable_non_generic: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

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

is_unreachable_local_definition: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

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

upstream_monomorphizations: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<DefId, HashMap<&'tcx List<GenericArg<'tcx>>, CrateNum, BuildHasherDefault<FxHasher>>, BuildHasherDefault<FxHasher>>>>

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

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

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

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

upstream_drop_glue_for: QueryState<DepKind, Query<'tcx>, DefaultCache<&'tcx List<GenericArg<'tcx>>, Option<CrateNum>>>

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

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

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

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

foreign_modules: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Rc<HashMap<DefId, ForeignModule, BuildHasherDefault<FxHasher>>>>>

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

entry_fn: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Option<(LocalDefId, EntryFnType)>>>

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

plugin_registrar_fn: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Option<DefId>>>

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

proc_macro_decls_static: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Option<DefId>>>

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

crate_disambiguator: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, CrateDisambiguator>>

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

crate_hash: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Svh>>

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

crate_host_hash: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Option<Svh>>>

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

original_crate_name: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Symbol>>

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

extra_filename: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, String>>

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

crate_extern_paths: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Vec<PathBuf, Global>>>

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

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

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

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

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

dllimport_foreign_items: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashSet<DefId, BuildHasherDefault<FxHasher>>>>

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

is_dllimport_foreign_item: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

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

is_statically_included_foreign_item: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

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

native_library_kind: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Option<NativeLibKind>>>

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

link_args: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Rc<Vec<String, Global>>>>

[query description - consider adding a doc-comment!] looking up link arguments for a crate

resolve_lifetimes: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, ResolveLifetimes>>

Lifetime resolution. See middle::resolve_lifetimes.

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

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

is_late_bound_map: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx HashSet<ItemLocalId, BuildHasherDefault<FxHasher>>>>>

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

object_lifetime_defaults_map: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<&'tcx HashMap<ItemLocalId, Vec<Set1<Region>, Global>, BuildHasherDefault<FxHasher>>>>>

[query description - consider adding a doc-comment!] looking up lifetime defaults for a region

visibility: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, Visibility>>

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

dep_kind: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, CrateDepKind>>

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

crate_name: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Symbol>>

[query description - consider adding a doc-comment!] fetching what a crate is named

item_children: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, &'tcx [Export<HirId>]>>

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

extern_mod_stmt_cnum: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, Option<CrateNum>>>

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

get_lib_features: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, LibFeatures>>

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

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

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

get_lang_items: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, LanguageItems>>

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

all_diagnostic_items: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<Symbol, DefId, BuildHasherDefault<FxHasher>>>>

Returns all diagnostic items defined in all crates.

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

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

diagnostic_items: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<Symbol, DefId, BuildHasherDefault<FxHasher>>>>

Returns the diagnostic items defined in a crate.

missing_lang_items: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [LangItem]>>

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

visible_parent_map: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<DefId, DefId, BuildHasherDefault<FxHasher>>>>

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

trimmed_def_paths: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<DefId, Symbol, BuildHasherDefault<FxHasher>>>>

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

missing_extern_crate_item: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, bool>>

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

used_crate_source: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Rc<CrateSource>>>

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

postorder_cnums: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [CrateNum]>>

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

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

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

maybe_unused_trait_import: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, bool>>

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

maybe_unused_extern_crates: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [(LocalDefId, Span)]>>

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

names_imported_by_glob_use: QueryState<DepKind, Query<'tcx>, DefaultCache<LocalDefId, &'tcx HashSet<Symbol, BuildHasherDefault<FxHasher>>>>

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

stability_index: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, Index<'tcx>>>

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

all_crate_nums: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [CrateNum]>>

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

all_traits: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx [DefId]>>

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

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

The list of symbols exported from the given crate.

collect_and_partition_mono_items: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, (&'tcx HashSet<DefId, BuildHasherDefault<FxHasher>>, &'tcx [CodegenUnit<'tcx>])>>

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

is_codegened_item: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, bool>>

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

codegen_unit: QueryState<DepKind, Query<'tcx>, DefaultCache<Symbol, &'tcx CodegenUnit<'tcx>>>

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

unused_generic_params: QueryState<DepKind, Query<'tcx>, DefaultCache<DefId, FiniteBitSet<u32>>>

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

backend_optimization_level: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, OptLevel>>

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

output_filenames: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, Arc<OutputFilenames>>>

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

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

Do not call this query directly: invoke normalize instead.

normalize_generic_arg_after_erasing_regions: QueryState<DepKind, Query<'tcx>, DefaultCache<ParamEnvAnd<'tcx, GenericArg<'tcx>>, GenericArg<'tcx>>>

Do not call this query directly: invoke normalize_erasing_regions instead.

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

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

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

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

evaluate_obligation: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, Predicate<'tcx>>>, Result<EvaluationResult, OverflowError>>>

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

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

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

type_implements_trait: QueryState<DepKind, Query<'tcx>, DefaultCache<(DefId, &'tcx TyS<'tcx>, &'tcx List<GenericArg<'tcx>>, ParamEnv<'tcx>), bool>>

[query description - consider adding a doc-comment!] evaluating type_implements_trait {:?}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

subst_and_check_impossible_predicates: QueryState<DepKind, Query<'tcx>, DefaultCache<(DefId, &'tcx List<GenericArg<'tcx>>), bool>>

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

method_autoderef_steps: QueryState<DepKind, Query<'tcx>, DefaultCache<Canonical<'tcx, ParamEnvAnd<'tcx, &'tcx TyS<'tcx>>>, MethodAutoderefStepsResult<'tcx>>>

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

supported_target_features: QueryState<DepKind, Query<'tcx>, ArenaCache<'tcx, CrateNum, HashMap<String, Option<Symbol>, BuildHasherDefault<FxHasher>>>>

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

instance_def_size_estimate: QueryState<DepKind, Query<'tcx>, DefaultCache<InstanceDef<'tcx>, usize>>

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

features_query: QueryState<DepKind, Query<'tcx>, DefaultCache<CrateNum, &'tcx Features>>

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

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

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

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

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

normalize_opaque_types: QueryState<DepKind, Query<'tcx>, DefaultCache<&'tcx List<Predicate<'tcx>>, &'tcx List<Predicate<'tcx>>>>

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

Implementations

impl<'tcx> Queries<'tcx>[src]

pub(crate) fn new(
    providers: IndexVec<CrateNum, Providers>,
    fallback_extern_providers: Providers,
    on_disk_cache: Option<OnDiskCache<'tcx>>
) -> Self
[src]

pub(crate) fn try_collect_active_jobs(
    &self
) -> Option<FxHashMap<QueryJobId<DepKind>, QueryJobInfo<DepKind, Query<'tcx>>>>
[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for Queries<'tcx>[src]

impl<'tcx> !Send for Queries<'tcx>[src]

impl<'tcx> !Sync for Queries<'tcx>[src]

impl<'tcx> Unpin for Queries<'tcx>[src]

impl<'tcx> !UnwindSafe for Queries<'tcx>[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]