[−][src]Struct rustc_middle::ty::query::TyCtxtAt
Fields
tcx: TyCtxt<'tcx>span: SpanImplementations
impl<'tcx> TyCtxtAt<'tcx>[src]
pub fn layout_of(
self,
param_env_and_ty: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> Result<TyAndLayout<'tcx>, LayoutError<'tcx>>[src]
self,
param_env_and_ty: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> Result<TyAndLayout<'tcx>, LayoutError<'tcx>>
Computes the layout of a type. Note that this implicitly executes in "reveal all" mode.
impl<'tcx> TyCtxtAt<'tcx>[src]
pub fn trigger_delay_span_bug(
self,
key: impl IntoQueryParam<DefId>
) -> <trigger_delay_span_bug<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <trigger_delay_span_bug<'tcx> as QueryConfig>::Stored
pub fn hir_crate(
self,
key: CrateNum
) -> <hir_crate<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <hir_crate<'tcx> as QueryConfig>::Stored
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().
pub fn index_hir(
self,
key: CrateNum
) -> <index_hir<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <index_hir<'tcx> as QueryConfig>::Stored
The indexed HIR. This can be conveniently accessed by tcx.hir().
Avoid calling this query directly.
pub fn hir_module_items(
self,
key: LocalDefId
) -> <hir_module_items<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <hir_module_items<'tcx> as QueryConfig>::Stored
The items in a module.
This can be conveniently accessed by tcx.hir().visit_item_likes_in_module.
Avoid calling this query directly.
pub fn hir_owner(
self,
key: LocalDefId
) -> <hir_owner<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <hir_owner<'tcx> as QueryConfig>::Stored
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.
pub fn hir_owner_nodes(
self,
key: LocalDefId
) -> <hir_owner_nodes<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <hir_owner_nodes<'tcx> as QueryConfig>::Stored
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.
pub fn opt_const_param_of(
self,
key: LocalDefId
) -> <opt_const_param_of<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <opt_const_param_of<'tcx> as QueryConfig>::Stored
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`. }
pub fn type_of(
self,
key: impl IntoQueryParam<DefId>
) -> <type_of<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <type_of<'tcx> as QueryConfig>::Stored
Records the type of every item.
pub fn analysis(self, key: CrateNum) -> <analysis<'tcx> as QueryConfig>::Stored[src]
pub fn generics_of(
self,
key: impl IntoQueryParam<DefId>
) -> <generics_of<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <generics_of<'tcx> as QueryConfig>::Stored
Maps from the DefId of an item (trait/struct/enum/fn) to its
associated generics.
pub fn predicates_of(
self,
key: impl IntoQueryParam<DefId>
) -> <predicates_of<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <predicates_of<'tcx> as QueryConfig>::Stored
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.)
pub fn explicit_item_bounds(
self,
key: impl IntoQueryParam<DefId>
) -> <explicit_item_bounds<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <explicit_item_bounds<'tcx> as QueryConfig>::Stored
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.
pub fn item_bounds(
self,
key: impl IntoQueryParam<DefId>
) -> <item_bounds<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <item_bounds<'tcx> as QueryConfig>::Stored
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.
pub fn projection_ty_from_predicates(
self,
key: (DefId, DefId)
) -> <projection_ty_from_predicates<'tcx> as QueryConfig>::Stored[src]
self,
key: (DefId, DefId)
) -> <projection_ty_from_predicates<'tcx> as QueryConfig>::Stored
pub fn native_libraries(
self,
key: CrateNum
) -> <native_libraries<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <native_libraries<'tcx> as QueryConfig>::Stored
pub fn lint_levels(
self,
key: CrateNum
) -> <lint_levels<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <lint_levels<'tcx> as QueryConfig>::Stored
pub fn parent_module_from_def_id(
self,
key: LocalDefId
) -> <parent_module_from_def_id<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <parent_module_from_def_id<'tcx> as QueryConfig>::Stored
pub fn expn_that_defined(
self,
key: impl IntoQueryParam<DefId>
) -> <expn_that_defined<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <expn_that_defined<'tcx> as QueryConfig>::Stored
Internal helper query. Use tcx.expansion_that_defined instead
pub fn is_panic_runtime(
self,
key: CrateNum
) -> <is_panic_runtime<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <is_panic_runtime<'tcx> as QueryConfig>::Stored
pub fn mir_keys(self, key: CrateNum) -> <mir_keys<'tcx> as QueryConfig>::Stored[src]
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.
pub fn mir_const_qualif(
self,
key: impl IntoQueryParam<DefId>
) -> <mir_const_qualif<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <mir_const_qualif<'tcx> as QueryConfig>::Stored
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.
pub fn mir_const_qualif_const_arg(
self,
key: (LocalDefId, DefId)
) -> <mir_const_qualif_const_arg<'tcx> as QueryConfig>::Stored[src]
self,
key: (LocalDefId, DefId)
) -> <mir_const_qualif_const_arg<'tcx> as QueryConfig>::Stored
pub fn mir_built(
self,
key: WithOptConstParam<LocalDefId>
) -> <mir_built<'tcx> as QueryConfig>::Stored[src]
self,
key: WithOptConstParam<LocalDefId>
) -> <mir_built<'tcx> as QueryConfig>::Stored
Fetch the MIR for a given DefId right after it's built - this includes
unreachable code.
pub fn mir_const(
self,
key: WithOptConstParam<LocalDefId>
) -> <mir_const<'tcx> as QueryConfig>::Stored[src]
self,
key: WithOptConstParam<LocalDefId>
) -> <mir_const<'tcx> as QueryConfig>::Stored
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.
pub fn mir_abstract_const(
self,
key: impl IntoQueryParam<DefId>
) -> <mir_abstract_const<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <mir_abstract_const<'tcx> as QueryConfig>::Stored
Try to build an abstract representation of the given constant.
pub fn mir_abstract_const_of_const_arg(
self,
key: (LocalDefId, DefId)
) -> <mir_abstract_const_of_const_arg<'tcx> as QueryConfig>::Stored[src]
self,
key: (LocalDefId, DefId)
) -> <mir_abstract_const_of_const_arg<'tcx> as QueryConfig>::Stored
Try to build an abstract representation of the given constant.
pub fn try_unify_abstract_consts(
self,
key: ((WithOptConstParam<DefId>, SubstsRef<'tcx>), (WithOptConstParam<DefId>, SubstsRef<'tcx>))
) -> <try_unify_abstract_consts<'tcx> as QueryConfig>::Stored[src]
self,
key: ((WithOptConstParam<DefId>, SubstsRef<'tcx>), (WithOptConstParam<DefId>, SubstsRef<'tcx>))
) -> <try_unify_abstract_consts<'tcx> as QueryConfig>::Stored
pub fn mir_drops_elaborated_and_const_checked(
self,
key: WithOptConstParam<LocalDefId>
) -> <mir_drops_elaborated_and_const_checked<'tcx> as QueryConfig>::Stored[src]
self,
key: WithOptConstParam<LocalDefId>
) -> <mir_drops_elaborated_and_const_checked<'tcx> as QueryConfig>::Stored
pub fn mir_promoted(
self,
key: WithOptConstParam<LocalDefId>
) -> <mir_promoted<'tcx> as QueryConfig>::Stored[src]
self,
key: WithOptConstParam<LocalDefId>
) -> <mir_promoted<'tcx> as QueryConfig>::Stored
pub fn optimized_mir(
self,
key: impl IntoQueryParam<DefId>
) -> <optimized_mir<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <optimized_mir<'tcx> as QueryConfig>::Stored
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.
pub fn optimized_mir_of_const_arg(
self,
key: (LocalDefId, DefId)
) -> <optimized_mir_of_const_arg<'tcx> as QueryConfig>::Stored[src]
self,
key: (LocalDefId, DefId)
) -> <optimized_mir_of_const_arg<'tcx> as QueryConfig>::Stored
pub fn coverageinfo(
self,
key: impl IntoQueryParam<DefId>
) -> <coverageinfo<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <coverageinfo<'tcx> as QueryConfig>::Stored
Returns coverage summary info for a function, after executing the InstrumentCoverage
MIR pass (assuming the -Zinstrument-coverage option is enabled).
pub fn promoted_mir(
self,
key: impl IntoQueryParam<DefId>
) -> <promoted_mir<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <promoted_mir<'tcx> as QueryConfig>::Stored
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.
pub fn promoted_mir_of_const_arg(
self,
key: (LocalDefId, DefId)
) -> <promoted_mir_of_const_arg<'tcx> as QueryConfig>::Stored[src]
self,
key: (LocalDefId, DefId)
) -> <promoted_mir_of_const_arg<'tcx> as QueryConfig>::Stored
pub fn erase_regions_ty(
self,
key: Ty<'tcx>
) -> <erase_regions_ty<'tcx> as QueryConfig>::Stored[src]
self,
key: Ty<'tcx>
) -> <erase_regions_ty<'tcx> as QueryConfig>::Stored
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.
pub fn wasm_import_module_map(
self,
key: CrateNum
) -> <wasm_import_module_map<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <wasm_import_module_map<'tcx> as QueryConfig>::Stored
pub fn predicates_defined_on(
self,
key: impl IntoQueryParam<DefId>
) -> <predicates_defined_on<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <predicates_defined_on<'tcx> as QueryConfig>::Stored
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.
pub fn trait_explicit_predicates_and_bounds(
self,
key: LocalDefId
) -> <trait_explicit_predicates_and_bounds<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <trait_explicit_predicates_and_bounds<'tcx> as QueryConfig>::Stored
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.
pub fn explicit_predicates_of(
self,
key: impl IntoQueryParam<DefId>
) -> <explicit_predicates_of<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <explicit_predicates_of<'tcx> as QueryConfig>::Stored
Returns the predicates written explicitly by the user.
pub fn inferred_outlives_of(
self,
key: impl IntoQueryParam<DefId>
) -> <inferred_outlives_of<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <inferred_outlives_of<'tcx> as QueryConfig>::Stored
Returns the inferred outlives predicates (e.g., for struct Foo<'a, T> { x: &'a T }, this would return T: 'a).
pub fn super_predicates_of(
self,
key: impl IntoQueryParam<DefId>
) -> <super_predicates_of<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <super_predicates_of<'tcx> as QueryConfig>::Stored
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).
pub fn type_param_predicates(
self,
key: (DefId, LocalDefId)
) -> <type_param_predicates<'tcx> as QueryConfig>::Stored[src]
self,
key: (DefId, LocalDefId)
) -> <type_param_predicates<'tcx> as QueryConfig>::Stored
To avoid cycles within the predicates of a single item we compute
per-type-parameter predicates for resolving T::AssocTy.
pub fn trait_def(
self,
key: impl IntoQueryParam<DefId>
) -> <trait_def<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <trait_def<'tcx> as QueryConfig>::Stored
pub fn adt_def(
self,
key: impl IntoQueryParam<DefId>
) -> <adt_def<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <adt_def<'tcx> as QueryConfig>::Stored
pub fn adt_destructor(
self,
key: impl IntoQueryParam<DefId>
) -> <adt_destructor<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <adt_destructor<'tcx> as QueryConfig>::Stored
pub fn adt_sized_constraint(
self,
key: impl IntoQueryParam<DefId>
) -> <adt_sized_constraint<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <adt_sized_constraint<'tcx> as QueryConfig>::Stored
pub fn adt_dtorck_constraint(
self,
key: impl IntoQueryParam<DefId>
) -> <adt_dtorck_constraint<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <adt_dtorck_constraint<'tcx> as QueryConfig>::Stored
pub fn is_const_fn_raw(
self,
key: impl IntoQueryParam<DefId>
) -> <is_const_fn_raw<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <is_const_fn_raw<'tcx> as QueryConfig>::Stored
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.
pub fn is_const_impl_raw(
self,
key: impl IntoQueryParam<DefId>
) -> <is_const_impl_raw<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <is_const_impl_raw<'tcx> as QueryConfig>::Stored
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]).
pub fn asyncness(
self,
key: impl IntoQueryParam<DefId>
) -> <asyncness<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <asyncness<'tcx> as QueryConfig>::Stored
pub fn is_promotable_const_fn(
self,
key: impl IntoQueryParam<DefId>
) -> <is_promotable_const_fn<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <is_promotable_const_fn<'tcx> as QueryConfig>::Stored
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).
pub fn is_foreign_item(
self,
key: impl IntoQueryParam<DefId>
) -> <is_foreign_item<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <is_foreign_item<'tcx> as QueryConfig>::Stored
Returns true if this is a foreign item (i.e., linked via extern { ... }).
pub fn static_mutability(
self,
key: impl IntoQueryParam<DefId>
) -> <static_mutability<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <static_mutability<'tcx> as QueryConfig>::Stored
Returns Some(mutability) if the node pointed to by def_id is a static item.
pub fn generator_kind(
self,
key: impl IntoQueryParam<DefId>
) -> <generator_kind<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <generator_kind<'tcx> as QueryConfig>::Stored
Returns Some(generator_kind) if the node pointed to by def_id is a generator.
pub fn crate_variances(
self,
key: CrateNum
) -> <crate_variances<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <crate_variances<'tcx> as QueryConfig>::Stored
Gets a map with the variance of every item; use item_variance instead.
pub fn variances_of(
self,
key: impl IntoQueryParam<DefId>
) -> <variances_of<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <variances_of<'tcx> as QueryConfig>::Stored
Maps from the DefId of a type or region parameter to its (inferred) variance.
pub fn inferred_outlives_crate(
self,
key: CrateNum
) -> <inferred_outlives_crate<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <inferred_outlives_crate<'tcx> as QueryConfig>::Stored
Maps from thee DefId of a type to its (inferred) outlives.
pub fn associated_item_def_ids(
self,
key: impl IntoQueryParam<DefId>
) -> <associated_item_def_ids<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <associated_item_def_ids<'tcx> as QueryConfig>::Stored
Maps from an impl/trait DefId to a list of the DefId`s of its items.
pub fn associated_item(
self,
key: impl IntoQueryParam<DefId>
) -> <associated_item<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <associated_item<'tcx> as QueryConfig>::Stored
Maps from a trait item to the trait item "descriptor".
pub fn associated_items(
self,
key: impl IntoQueryParam<DefId>
) -> <associated_items<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <associated_items<'tcx> as QueryConfig>::Stored
Collects the associated items defined on a trait or impl.
pub fn impl_trait_ref(
self,
key: impl IntoQueryParam<DefId>
) -> <impl_trait_ref<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <impl_trait_ref<'tcx> as QueryConfig>::Stored
pub fn impl_polarity(
self,
key: impl IntoQueryParam<DefId>
) -> <impl_polarity<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <impl_polarity<'tcx> as QueryConfig>::Stored
pub fn issue33140_self_ty(
self,
key: impl IntoQueryParam<DefId>
) -> <issue33140_self_ty<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <issue33140_self_ty<'tcx> as QueryConfig>::Stored
pub fn inherent_impls(
self,
key: impl IntoQueryParam<DefId>
) -> <inherent_impls<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <inherent_impls<'tcx> as QueryConfig>::Stored
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.
pub fn unsafety_check_result(
self,
key: LocalDefId
) -> <unsafety_check_result<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <unsafety_check_result<'tcx> as QueryConfig>::Stored
The result of unsafety-checking this LocalDefId.
pub fn unsafety_check_result_for_const_arg(
self,
key: (LocalDefId, DefId)
) -> <unsafety_check_result_for_const_arg<'tcx> as QueryConfig>::Stored[src]
self,
key: (LocalDefId, DefId)
) -> <unsafety_check_result_for_const_arg<'tcx> as QueryConfig>::Stored
pub fn unsafe_derive_on_repr_packed(
self,
key: LocalDefId
) -> <unsafe_derive_on_repr_packed<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <unsafe_derive_on_repr_packed<'tcx> as QueryConfig>::Stored
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.
pub fn fn_sig(
self,
key: impl IntoQueryParam<DefId>
) -> <fn_sig<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <fn_sig<'tcx> as QueryConfig>::Stored
The signature of functions.
pub fn lint_mod(
self,
key: LocalDefId
) -> <lint_mod<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <lint_mod<'tcx> as QueryConfig>::Stored
pub fn check_mod_attrs(
self,
key: LocalDefId
) -> <check_mod_attrs<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_mod_attrs<'tcx> as QueryConfig>::Stored
Checks the attributes in the module.
pub fn check_mod_unstable_api_usage(
self,
key: LocalDefId
) -> <check_mod_unstable_api_usage<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_mod_unstable_api_usage<'tcx> as QueryConfig>::Stored
pub fn check_mod_const_bodies(
self,
key: LocalDefId
) -> <check_mod_const_bodies<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_mod_const_bodies<'tcx> as QueryConfig>::Stored
Checks the const bodies in the module for illegal operations (e.g. if or loop).
pub fn check_mod_loops(
self,
key: LocalDefId
) -> <check_mod_loops<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_mod_loops<'tcx> as QueryConfig>::Stored
Checks the loops in the module.
pub fn check_mod_item_types(
self,
key: LocalDefId
) -> <check_mod_item_types<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_mod_item_types<'tcx> as QueryConfig>::Stored
pub fn check_mod_privacy(
self,
key: LocalDefId
) -> <check_mod_privacy<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_mod_privacy<'tcx> as QueryConfig>::Stored
pub fn check_mod_intrinsics(
self,
key: LocalDefId
) -> <check_mod_intrinsics<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_mod_intrinsics<'tcx> as QueryConfig>::Stored
pub fn check_mod_liveness(
self,
key: LocalDefId
) -> <check_mod_liveness<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_mod_liveness<'tcx> as QueryConfig>::Stored
pub fn check_mod_impl_wf(
self,
key: LocalDefId
) -> <check_mod_impl_wf<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_mod_impl_wf<'tcx> as QueryConfig>::Stored
pub fn collect_mod_item_types(
self,
key: LocalDefId
) -> <collect_mod_item_types<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <collect_mod_item_types<'tcx> as QueryConfig>::Stored
pub fn coerce_unsized_info(
self,
key: impl IntoQueryParam<DefId>
) -> <coerce_unsized_info<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <coerce_unsized_info<'tcx> as QueryConfig>::Stored
Caches CoerceUnsized kinds for impls on custom types.
pub fn typeck_item_bodies(
self,
key: CrateNum
) -> <typeck_item_bodies<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <typeck_item_bodies<'tcx> as QueryConfig>::Stored
pub fn typeck(self, key: LocalDefId) -> <typeck<'tcx> as QueryConfig>::Stored[src]
pub fn typeck_const_arg(
self,
key: (LocalDefId, DefId)
) -> <typeck_const_arg<'tcx> as QueryConfig>::Stored[src]
self,
key: (LocalDefId, DefId)
) -> <typeck_const_arg<'tcx> as QueryConfig>::Stored
pub fn diagnostic_only_typeck(
self,
key: LocalDefId
) -> <diagnostic_only_typeck<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <diagnostic_only_typeck<'tcx> as QueryConfig>::Stored
pub fn used_trait_imports(
self,
key: LocalDefId
) -> <used_trait_imports<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <used_trait_imports<'tcx> as QueryConfig>::Stored
pub fn has_typeck_results(
self,
key: impl IntoQueryParam<DefId>
) -> <has_typeck_results<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <has_typeck_results<'tcx> as QueryConfig>::Stored
pub fn coherent_trait(
self,
key: impl IntoQueryParam<DefId>
) -> <coherent_trait<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <coherent_trait<'tcx> as QueryConfig>::Stored
pub fn mir_borrowck(
self,
key: LocalDefId
) -> <mir_borrowck<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <mir_borrowck<'tcx> as QueryConfig>::Stored
Borrow-checks the function body. If this is a closure, returns additional requirements that the closure's creator must verify.
pub fn mir_borrowck_const_arg(
self,
key: (LocalDefId, DefId)
) -> <mir_borrowck_const_arg<'tcx> as QueryConfig>::Stored[src]
self,
key: (LocalDefId, DefId)
) -> <mir_borrowck_const_arg<'tcx> as QueryConfig>::Stored
pub fn crate_inherent_impls(
self,
key: CrateNum
) -> <crate_inherent_impls<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <crate_inherent_impls<'tcx> as QueryConfig>::Stored
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.)
pub fn crate_inherent_impls_overlap_check(
self,
key: CrateNum
) -> <crate_inherent_impls_overlap_check<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <crate_inherent_impls_overlap_check<'tcx> as QueryConfig>::Stored
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.)
pub fn eval_to_allocation_raw(
self,
key: ParamEnvAnd<'tcx, GlobalId<'tcx>>
) -> <eval_to_allocation_raw<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, GlobalId<'tcx>>
) -> <eval_to_allocation_raw<'tcx> as QueryConfig>::Stored
Evaluates a constant and returns the computed allocation.
Do not use this directly, use the tcx.eval_static_initializer wrapper.
pub fn eval_to_const_value_raw(
self,
key: ParamEnvAnd<'tcx, GlobalId<'tcx>>
) -> <eval_to_const_value_raw<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, GlobalId<'tcx>>
) -> <eval_to_const_value_raw<'tcx> as QueryConfig>::Stored
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.
pub fn destructure_const(
self,
key: ParamEnvAnd<'tcx, &'tcx Const<'tcx>>
) -> <destructure_const<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, &'tcx Const<'tcx>>
) -> <destructure_const<'tcx> as QueryConfig>::Stored
Destructure a constant ADT or array into its variant index and its field values.
pub fn deref_const(
self,
key: ParamEnvAnd<'tcx, &'tcx Const<'tcx>>
) -> <deref_const<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, &'tcx Const<'tcx>>
) -> <deref_const<'tcx> as QueryConfig>::Stored
Dereference a constant reference or raw pointer and turn the result into a constant again.
pub fn const_caller_location(
self,
key: (Symbol, u32, u32)
) -> <const_caller_location<'tcx> as QueryConfig>::Stored[src]
self,
key: (Symbol, u32, u32)
) -> <const_caller_location<'tcx> as QueryConfig>::Stored
pub fn lit_to_const(
self,
key: LitToConstInput<'tcx>
) -> <lit_to_const<'tcx> as QueryConfig>::Stored[src]
self,
key: LitToConstInput<'tcx>
) -> <lit_to_const<'tcx> as QueryConfig>::Stored
pub fn check_match(
self,
key: impl IntoQueryParam<DefId>
) -> <check_match<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <check_match<'tcx> as QueryConfig>::Stored
pub fn privacy_access_levels(
self,
key: CrateNum
) -> <privacy_access_levels<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <privacy_access_levels<'tcx> as QueryConfig>::Stored
Performs part of the privacy check and computes "access levels".
pub fn check_private_in_public(
self,
key: CrateNum
) -> <check_private_in_public<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <check_private_in_public<'tcx> as QueryConfig>::Stored
pub fn reachable_set(
self,
key: CrateNum
) -> <reachable_set<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <reachable_set<'tcx> as QueryConfig>::Stored
pub fn region_scope_tree(
self,
key: impl IntoQueryParam<DefId>
) -> <region_scope_tree<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <region_scope_tree<'tcx> as QueryConfig>::Stored
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.
pub fn mir_shims(
self,
key: InstanceDef<'tcx>
) -> <mir_shims<'tcx> as QueryConfig>::Stored[src]
self,
key: InstanceDef<'tcx>
) -> <mir_shims<'tcx> as QueryConfig>::Stored
pub fn symbol_name(
self,
key: Instance<'tcx>
) -> <symbol_name<'tcx> as QueryConfig>::Stored[src]
self,
key: Instance<'tcx>
) -> <symbol_name<'tcx> as QueryConfig>::Stored
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.
pub fn def_kind(
self,
key: impl IntoQueryParam<DefId>
) -> <def_kind<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <def_kind<'tcx> as QueryConfig>::Stored
pub fn def_span(
self,
key: impl IntoQueryParam<DefId>
) -> <def_span<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <def_span<'tcx> as QueryConfig>::Stored
pub fn lookup_stability(
self,
key: impl IntoQueryParam<DefId>
) -> <lookup_stability<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <lookup_stability<'tcx> as QueryConfig>::Stored
pub fn lookup_const_stability(
self,
key: impl IntoQueryParam<DefId>
) -> <lookup_const_stability<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <lookup_const_stability<'tcx> as QueryConfig>::Stored
pub fn lookup_deprecation_entry(
self,
key: impl IntoQueryParam<DefId>
) -> <lookup_deprecation_entry<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <lookup_deprecation_entry<'tcx> as QueryConfig>::Stored
pub fn item_attrs(
self,
key: impl IntoQueryParam<DefId>
) -> <item_attrs<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <item_attrs<'tcx> as QueryConfig>::Stored
pub fn codegen_fn_attrs(
self,
key: impl IntoQueryParam<DefId>
) -> <codegen_fn_attrs<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <codegen_fn_attrs<'tcx> as QueryConfig>::Stored
pub fn fn_arg_names(
self,
key: impl IntoQueryParam<DefId>
) -> <fn_arg_names<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <fn_arg_names<'tcx> as QueryConfig>::Stored
pub fn rendered_const(
self,
key: impl IntoQueryParam<DefId>
) -> <rendered_const<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <rendered_const<'tcx> as QueryConfig>::Stored
Gets the rendered value of the specified constant or associated constant. Used by rustdoc.
pub fn impl_parent(
self,
key: impl IntoQueryParam<DefId>
) -> <impl_parent<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <impl_parent<'tcx> as QueryConfig>::Stored
pub fn trait_of_item(
self,
key: impl IntoQueryParam<DefId>
) -> <trait_of_item<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <trait_of_item<'tcx> as QueryConfig>::Stored
pub fn is_mir_available(
self,
key: impl IntoQueryParam<DefId>
) -> <is_mir_available<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <is_mir_available<'tcx> as QueryConfig>::Stored
pub fn vtable_methods(
self,
key: PolyTraitRef<'tcx>
) -> <vtable_methods<'tcx> as QueryConfig>::Stored[src]
self,
key: PolyTraitRef<'tcx>
) -> <vtable_methods<'tcx> as QueryConfig>::Stored
pub fn codegen_fulfill_obligation(
self,
key: (ParamEnv<'tcx>, PolyTraitRef<'tcx>)
) -> <codegen_fulfill_obligation<'tcx> as QueryConfig>::Stored[src]
self,
key: (ParamEnv<'tcx>, PolyTraitRef<'tcx>)
) -> <codegen_fulfill_obligation<'tcx> as QueryConfig>::Stored
pub fn all_local_trait_impls(
self,
key: CrateNum
) -> <all_local_trait_impls<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <all_local_trait_impls<'tcx> as QueryConfig>::Stored
pub fn trait_impls_of(
self,
key: impl IntoQueryParam<DefId>
) -> <trait_impls_of<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <trait_impls_of<'tcx> as QueryConfig>::Stored
pub fn specialization_graph_of(
self,
key: impl IntoQueryParam<DefId>
) -> <specialization_graph_of<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <specialization_graph_of<'tcx> as QueryConfig>::Stored
pub fn object_safety_violations(
self,
key: impl IntoQueryParam<DefId>
) -> <object_safety_violations<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <object_safety_violations<'tcx> as QueryConfig>::Stored
pub fn param_env(
self,
key: impl IntoQueryParam<DefId>
) -> <param_env<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <param_env<'tcx> as QueryConfig>::Stored
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
pub fn param_env_reveal_all_normalized(
self,
key: impl IntoQueryParam<DefId>
) -> <param_env_reveal_all_normalized<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <param_env_reveal_all_normalized<'tcx> as QueryConfig>::Stored
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.
pub fn is_copy_raw(
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> <is_copy_raw<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> <is_copy_raw<'tcx> as QueryConfig>::Stored
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.
pub fn is_sized_raw(
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> <is_sized_raw<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> <is_sized_raw<'tcx> as QueryConfig>::Stored
Query backing TyS::is_sized.
pub fn is_freeze_raw(
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> <is_freeze_raw<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> <is_freeze_raw<'tcx> as QueryConfig>::Stored
Query backing TyS::is_freeze.
pub fn needs_drop_raw(
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> <needs_drop_raw<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> <needs_drop_raw<'tcx> as QueryConfig>::Stored
Query backing TyS::needs_drop.
pub fn has_structural_eq_impls(
self,
key: Ty<'tcx>
) -> <has_structural_eq_impls<'tcx> as QueryConfig>::Stored[src]
self,
key: Ty<'tcx>
) -> <has_structural_eq_impls<'tcx> as QueryConfig>::Stored
Query backing TyS::is_structural_eq_shallow.
This is only correct for ADTs. Call is_structural_eq_shallow to handle all types
correctly.
pub fn adt_drop_tys(
self,
key: impl IntoQueryParam<DefId>
) -> <adt_drop_tys<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <adt_drop_tys<'tcx> as QueryConfig>::Stored
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.
pub fn layout_raw(
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> <layout_raw<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> <layout_raw<'tcx> as QueryConfig>::Stored
pub fn dylib_dependency_formats(
self,
key: CrateNum
) -> <dylib_dependency_formats<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <dylib_dependency_formats<'tcx> as QueryConfig>::Stored
pub fn dependency_formats(
self,
key: CrateNum
) -> <dependency_formats<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <dependency_formats<'tcx> as QueryConfig>::Stored
pub fn is_compiler_builtins(
self,
key: CrateNum
) -> <is_compiler_builtins<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <is_compiler_builtins<'tcx> as QueryConfig>::Stored
pub fn has_global_allocator(
self,
key: CrateNum
) -> <has_global_allocator<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <has_global_allocator<'tcx> as QueryConfig>::Stored
pub fn has_panic_handler(
self,
key: CrateNum
) -> <has_panic_handler<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <has_panic_handler<'tcx> as QueryConfig>::Stored
pub fn is_profiler_runtime(
self,
key: CrateNum
) -> <is_profiler_runtime<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <is_profiler_runtime<'tcx> as QueryConfig>::Stored
pub fn panic_strategy(
self,
key: CrateNum
) -> <panic_strategy<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <panic_strategy<'tcx> as QueryConfig>::Stored
pub fn is_no_builtins(
self,
key: CrateNum
) -> <is_no_builtins<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <is_no_builtins<'tcx> as QueryConfig>::Stored
pub fn symbol_mangling_version(
self,
key: CrateNum
) -> <symbol_mangling_version<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <symbol_mangling_version<'tcx> as QueryConfig>::Stored
pub fn extern_crate(
self,
key: impl IntoQueryParam<DefId>
) -> <extern_crate<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <extern_crate<'tcx> as QueryConfig>::Stored
pub fn specializes(
self,
key: (DefId, DefId)
) -> <specializes<'tcx> as QueryConfig>::Stored[src]
self,
key: (DefId, DefId)
) -> <specializes<'tcx> as QueryConfig>::Stored
pub fn in_scope_traits_map(
self,
key: LocalDefId
) -> <in_scope_traits_map<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <in_scope_traits_map<'tcx> as QueryConfig>::Stored
pub fn module_exports(
self,
key: LocalDefId
) -> <module_exports<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <module_exports<'tcx> as QueryConfig>::Stored
pub fn impl_defaultness(
self,
key: impl IntoQueryParam<DefId>
) -> <impl_defaultness<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <impl_defaultness<'tcx> as QueryConfig>::Stored
pub fn check_item_well_formed(
self,
key: LocalDefId
) -> <check_item_well_formed<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_item_well_formed<'tcx> as QueryConfig>::Stored
pub fn check_trait_item_well_formed(
self,
key: LocalDefId
) -> <check_trait_item_well_formed<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_trait_item_well_formed<'tcx> as QueryConfig>::Stored
pub fn check_impl_item_well_formed(
self,
key: LocalDefId
) -> <check_impl_item_well_formed<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <check_impl_item_well_formed<'tcx> as QueryConfig>::Stored
pub fn reachable_non_generics(
self,
key: CrateNum
) -> <reachable_non_generics<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <reachable_non_generics<'tcx> as QueryConfig>::Stored
pub fn is_reachable_non_generic(
self,
key: impl IntoQueryParam<DefId>
) -> <is_reachable_non_generic<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <is_reachable_non_generic<'tcx> as QueryConfig>::Stored
pub fn is_unreachable_local_definition(
self,
key: impl IntoQueryParam<DefId>
) -> <is_unreachable_local_definition<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <is_unreachable_local_definition<'tcx> as QueryConfig>::Stored
pub fn upstream_monomorphizations(
self,
key: CrateNum
) -> <upstream_monomorphizations<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <upstream_monomorphizations<'tcx> as QueryConfig>::Stored
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().
pub fn upstream_monomorphizations_for(
self,
key: impl IntoQueryParam<DefId>
) -> <upstream_monomorphizations_for<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <upstream_monomorphizations_for<'tcx> as QueryConfig>::Stored
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.
pub fn upstream_drop_glue_for(
self,
key: SubstsRef<'tcx>
) -> <upstream_drop_glue_for<'tcx> as QueryConfig>::Stored[src]
self,
key: SubstsRef<'tcx>
) -> <upstream_drop_glue_for<'tcx> as QueryConfig>::Stored
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).
pub fn foreign_modules(
self,
key: CrateNum
) -> <foreign_modules<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <foreign_modules<'tcx> as QueryConfig>::Stored
pub fn entry_fn(self, key: CrateNum) -> <entry_fn<'tcx> as QueryConfig>::Stored[src]
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).
pub fn plugin_registrar_fn(
self,
key: CrateNum
) -> <plugin_registrar_fn<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <plugin_registrar_fn<'tcx> as QueryConfig>::Stored
pub fn proc_macro_decls_static(
self,
key: CrateNum
) -> <proc_macro_decls_static<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <proc_macro_decls_static<'tcx> as QueryConfig>::Stored
pub fn crate_disambiguator(
self,
key: CrateNum
) -> <crate_disambiguator<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <crate_disambiguator<'tcx> as QueryConfig>::Stored
pub fn crate_hash(
self,
key: CrateNum
) -> <crate_hash<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <crate_hash<'tcx> as QueryConfig>::Stored
pub fn crate_host_hash(
self,
key: CrateNum
) -> <crate_host_hash<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <crate_host_hash<'tcx> as QueryConfig>::Stored
pub fn original_crate_name(
self,
key: CrateNum
) -> <original_crate_name<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <original_crate_name<'tcx> as QueryConfig>::Stored
pub fn extra_filename(
self,
key: CrateNum
) -> <extra_filename<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <extra_filename<'tcx> as QueryConfig>::Stored
pub fn crate_extern_paths(
self,
key: CrateNum
) -> <crate_extern_paths<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <crate_extern_paths<'tcx> as QueryConfig>::Stored
pub fn implementations_of_trait(
self,
key: (CrateNum, DefId)
) -> <implementations_of_trait<'tcx> as QueryConfig>::Stored[src]
self,
key: (CrateNum, DefId)
) -> <implementations_of_trait<'tcx> as QueryConfig>::Stored
pub fn all_trait_implementations(
self,
key: CrateNum
) -> <all_trait_implementations<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <all_trait_implementations<'tcx> as QueryConfig>::Stored
pub fn dllimport_foreign_items(
self,
key: CrateNum
) -> <dllimport_foreign_items<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <dllimport_foreign_items<'tcx> as QueryConfig>::Stored
pub fn is_dllimport_foreign_item(
self,
key: impl IntoQueryParam<DefId>
) -> <is_dllimport_foreign_item<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <is_dllimport_foreign_item<'tcx> as QueryConfig>::Stored
pub fn is_statically_included_foreign_item(
self,
key: impl IntoQueryParam<DefId>
) -> <is_statically_included_foreign_item<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <is_statically_included_foreign_item<'tcx> as QueryConfig>::Stored
pub fn native_library_kind(
self,
key: impl IntoQueryParam<DefId>
) -> <native_library_kind<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <native_library_kind<'tcx> as QueryConfig>::Stored
pub fn link_args(
self,
key: CrateNum
) -> <link_args<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <link_args<'tcx> as QueryConfig>::Stored
pub fn resolve_lifetimes(
self,
key: CrateNum
) -> <resolve_lifetimes<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <resolve_lifetimes<'tcx> as QueryConfig>::Stored
Lifetime resolution. See middle::resolve_lifetimes.
pub fn named_region_map(
self,
key: LocalDefId
) -> <named_region_map<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <named_region_map<'tcx> as QueryConfig>::Stored
pub fn is_late_bound_map(
self,
key: LocalDefId
) -> <is_late_bound_map<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <is_late_bound_map<'tcx> as QueryConfig>::Stored
pub fn object_lifetime_defaults_map(
self,
key: LocalDefId
) -> <object_lifetime_defaults_map<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <object_lifetime_defaults_map<'tcx> as QueryConfig>::Stored
pub fn visibility(
self,
key: impl IntoQueryParam<DefId>
) -> <visibility<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <visibility<'tcx> as QueryConfig>::Stored
pub fn dep_kind(self, key: CrateNum) -> <dep_kind<'tcx> as QueryConfig>::Stored[src]
pub fn crate_name(
self,
key: CrateNum
) -> <crate_name<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <crate_name<'tcx> as QueryConfig>::Stored
pub fn item_children(
self,
key: impl IntoQueryParam<DefId>
) -> <item_children<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <item_children<'tcx> as QueryConfig>::Stored
pub fn extern_mod_stmt_cnum(
self,
key: LocalDefId
) -> <extern_mod_stmt_cnum<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <extern_mod_stmt_cnum<'tcx> as QueryConfig>::Stored
pub fn get_lib_features(
self,
key: CrateNum
) -> <get_lib_features<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <get_lib_features<'tcx> as QueryConfig>::Stored
pub fn defined_lib_features(
self,
key: CrateNum
) -> <defined_lib_features<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <defined_lib_features<'tcx> as QueryConfig>::Stored
pub fn get_lang_items(
self,
key: CrateNum
) -> <get_lang_items<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <get_lang_items<'tcx> as QueryConfig>::Stored
Returns the lang items defined in another crate by loading it from metadata.
pub fn all_diagnostic_items(
self,
key: CrateNum
) -> <all_diagnostic_items<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <all_diagnostic_items<'tcx> as QueryConfig>::Stored
Returns all diagnostic items defined in all crates.
pub fn defined_lang_items(
self,
key: CrateNum
) -> <defined_lang_items<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <defined_lang_items<'tcx> as QueryConfig>::Stored
Returns the lang items defined in another crate by loading it from metadata.
pub fn diagnostic_items(
self,
key: CrateNum
) -> <diagnostic_items<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <diagnostic_items<'tcx> as QueryConfig>::Stored
Returns the diagnostic items defined in a crate.
pub fn missing_lang_items(
self,
key: CrateNum
) -> <missing_lang_items<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <missing_lang_items<'tcx> as QueryConfig>::Stored
pub fn visible_parent_map(
self,
key: CrateNum
) -> <visible_parent_map<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <visible_parent_map<'tcx> as QueryConfig>::Stored
pub fn trimmed_def_paths(
self,
key: CrateNum
) -> <trimmed_def_paths<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <trimmed_def_paths<'tcx> as QueryConfig>::Stored
pub fn missing_extern_crate_item(
self,
key: CrateNum
) -> <missing_extern_crate_item<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <missing_extern_crate_item<'tcx> as QueryConfig>::Stored
pub fn used_crate_source(
self,
key: CrateNum
) -> <used_crate_source<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <used_crate_source<'tcx> as QueryConfig>::Stored
pub fn postorder_cnums(
self,
key: CrateNum
) -> <postorder_cnums<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <postorder_cnums<'tcx> as QueryConfig>::Stored
pub fn upvars_mentioned(
self,
key: impl IntoQueryParam<DefId>
) -> <upvars_mentioned<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <upvars_mentioned<'tcx> as QueryConfig>::Stored
pub fn maybe_unused_trait_import(
self,
key: LocalDefId
) -> <maybe_unused_trait_import<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <maybe_unused_trait_import<'tcx> as QueryConfig>::Stored
pub fn maybe_unused_extern_crates(
self,
key: CrateNum
) -> <maybe_unused_extern_crates<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <maybe_unused_extern_crates<'tcx> as QueryConfig>::Stored
pub fn names_imported_by_glob_use(
self,
key: LocalDefId
) -> <names_imported_by_glob_use<'tcx> as QueryConfig>::Stored[src]
self,
key: LocalDefId
) -> <names_imported_by_glob_use<'tcx> as QueryConfig>::Stored
pub fn stability_index(
self,
key: CrateNum
) -> <stability_index<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <stability_index<'tcx> as QueryConfig>::Stored
pub fn all_crate_nums(
self,
key: CrateNum
) -> <all_crate_nums<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <all_crate_nums<'tcx> as QueryConfig>::Stored
pub fn all_traits(
self,
key: CrateNum
) -> <all_traits<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <all_traits<'tcx> as QueryConfig>::Stored
A vector of every trait accessible in the whole crate (i.e., including those from subcrates). This is used only for error reporting.
pub fn exported_symbols(
self,
key: CrateNum
) -> <exported_symbols<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <exported_symbols<'tcx> as QueryConfig>::Stored
The list of symbols exported from the given crate.
- All names contained in
exported_symbols(cnum)are guaranteed to correspond to a publicly visible symbol incnummachine code. - The
exported_symbolssets of different crates do not intersect.
pub fn collect_and_partition_mono_items(
self,
key: CrateNum
) -> <collect_and_partition_mono_items<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <collect_and_partition_mono_items<'tcx> as QueryConfig>::Stored
pub fn is_codegened_item(
self,
key: impl IntoQueryParam<DefId>
) -> <is_codegened_item<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <is_codegened_item<'tcx> as QueryConfig>::Stored
pub fn codegen_unit(
self,
key: Symbol
) -> <codegen_unit<'tcx> as QueryConfig>::Stored[src]
self,
key: Symbol
) -> <codegen_unit<'tcx> as QueryConfig>::Stored
pub fn unused_generic_params(
self,
key: impl IntoQueryParam<DefId>
) -> <unused_generic_params<'tcx> as QueryConfig>::Stored[src]
self,
key: impl IntoQueryParam<DefId>
) -> <unused_generic_params<'tcx> as QueryConfig>::Stored
pub fn backend_optimization_level(
self,
key: CrateNum
) -> <backend_optimization_level<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <backend_optimization_level<'tcx> as QueryConfig>::Stored
pub fn output_filenames(
self,
key: CrateNum
) -> <output_filenames<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <output_filenames<'tcx> as QueryConfig>::Stored
pub fn normalize_projection_ty(
self,
key: CanonicalProjectionGoal<'tcx>
) -> <normalize_projection_ty<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalProjectionGoal<'tcx>
) -> <normalize_projection_ty<'tcx> as QueryConfig>::Stored
Do not call this query directly: invoke normalize instead.
pub fn normalize_generic_arg_after_erasing_regions(
self,
key: ParamEnvAnd<'tcx, GenericArg<'tcx>>
) -> <normalize_generic_arg_after_erasing_regions<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, GenericArg<'tcx>>
) -> <normalize_generic_arg_after_erasing_regions<'tcx> as QueryConfig>::Stored
Do not call this query directly: invoke normalize_erasing_regions instead.
pub fn implied_outlives_bounds(
self,
key: CanonicalTyGoal<'tcx>
) -> <implied_outlives_bounds<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTyGoal<'tcx>
) -> <implied_outlives_bounds<'tcx> as QueryConfig>::Stored
pub fn dropck_outlives(
self,
key: CanonicalTyGoal<'tcx>
) -> <dropck_outlives<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTyGoal<'tcx>
) -> <dropck_outlives<'tcx> as QueryConfig>::Stored
Do not call this query directly: invoke infcx.at().dropck_outlives() instead.
pub fn evaluate_obligation(
self,
key: CanonicalPredicateGoal<'tcx>
) -> <evaluate_obligation<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalPredicateGoal<'tcx>
) -> <evaluate_obligation<'tcx> as QueryConfig>::Stored
Do not call this query directly: invoke infcx.predicate_may_hold() or
infcx.predicate_must_hold() instead.
pub fn evaluate_goal(
self,
key: CanonicalChalkEnvironmentAndGoal<'tcx>
) -> <evaluate_goal<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalChalkEnvironmentAndGoal<'tcx>
) -> <evaluate_goal<'tcx> as QueryConfig>::Stored
pub fn type_implements_trait(
self,
key: (DefId, Ty<'tcx>, SubstsRef<'tcx>, ParamEnv<'tcx>)
) -> <type_implements_trait<'tcx> as QueryConfig>::Stored[src]
self,
key: (DefId, Ty<'tcx>, SubstsRef<'tcx>, ParamEnv<'tcx>)
) -> <type_implements_trait<'tcx> as QueryConfig>::Stored
pub fn type_op_ascribe_user_type(
self,
key: CanonicalTypeOpAscribeUserTypeGoal<'tcx>
) -> <type_op_ascribe_user_type<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTypeOpAscribeUserTypeGoal<'tcx>
) -> <type_op_ascribe_user_type<'tcx> as QueryConfig>::Stored
Do not call this query directly: part of the Eq type-op
pub fn type_op_eq(
self,
key: CanonicalTypeOpEqGoal<'tcx>
) -> <type_op_eq<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTypeOpEqGoal<'tcx>
) -> <type_op_eq<'tcx> as QueryConfig>::Stored
Do not call this query directly: part of the Eq type-op
pub fn type_op_subtype(
self,
key: CanonicalTypeOpSubtypeGoal<'tcx>
) -> <type_op_subtype<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTypeOpSubtypeGoal<'tcx>
) -> <type_op_subtype<'tcx> as QueryConfig>::Stored
Do not call this query directly: part of the Subtype type-op
pub fn type_op_prove_predicate(
self,
key: CanonicalTypeOpProvePredicateGoal<'tcx>
) -> <type_op_prove_predicate<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTypeOpProvePredicateGoal<'tcx>
) -> <type_op_prove_predicate<'tcx> as QueryConfig>::Stored
Do not call this query directly: part of the ProvePredicate type-op
pub fn type_op_normalize_ty(
self,
key: CanonicalTypeOpNormalizeGoal<'tcx, Ty<'tcx>>
) -> <type_op_normalize_ty<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTypeOpNormalizeGoal<'tcx, Ty<'tcx>>
) -> <type_op_normalize_ty<'tcx> as QueryConfig>::Stored
Do not call this query directly: part of the Normalize type-op
pub fn type_op_normalize_predicate(
self,
key: CanonicalTypeOpNormalizeGoal<'tcx, Predicate<'tcx>>
) -> <type_op_normalize_predicate<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTypeOpNormalizeGoal<'tcx, Predicate<'tcx>>
) -> <type_op_normalize_predicate<'tcx> as QueryConfig>::Stored
Do not call this query directly: part of the Normalize type-op
pub fn type_op_normalize_poly_fn_sig(
self,
key: CanonicalTypeOpNormalizeGoal<'tcx, PolyFnSig<'tcx>>
) -> <type_op_normalize_poly_fn_sig<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTypeOpNormalizeGoal<'tcx, PolyFnSig<'tcx>>
) -> <type_op_normalize_poly_fn_sig<'tcx> as QueryConfig>::Stored
Do not call this query directly: part of the Normalize type-op
pub fn type_op_normalize_fn_sig(
self,
key: CanonicalTypeOpNormalizeGoal<'tcx, FnSig<'tcx>>
) -> <type_op_normalize_fn_sig<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTypeOpNormalizeGoal<'tcx, FnSig<'tcx>>
) -> <type_op_normalize_fn_sig<'tcx> as QueryConfig>::Stored
Do not call this query directly: part of the Normalize type-op
pub fn subst_and_check_impossible_predicates(
self,
key: (DefId, SubstsRef<'tcx>)
) -> <subst_and_check_impossible_predicates<'tcx> as QueryConfig>::Stored[src]
self,
key: (DefId, SubstsRef<'tcx>)
) -> <subst_and_check_impossible_predicates<'tcx> as QueryConfig>::Stored
pub fn method_autoderef_steps(
self,
key: CanonicalTyGoal<'tcx>
) -> <method_autoderef_steps<'tcx> as QueryConfig>::Stored[src]
self,
key: CanonicalTyGoal<'tcx>
) -> <method_autoderef_steps<'tcx> as QueryConfig>::Stored
pub fn supported_target_features(
self,
key: CrateNum
) -> <supported_target_features<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <supported_target_features<'tcx> as QueryConfig>::Stored
pub fn instance_def_size_estimate(
self,
key: InstanceDef<'tcx>
) -> <instance_def_size_estimate<'tcx> as QueryConfig>::Stored[src]
self,
key: InstanceDef<'tcx>
) -> <instance_def_size_estimate<'tcx> as QueryConfig>::Stored
Get an estimate of the size of an InstanceDef based on its MIR for CGU partitioning.
pub fn features_query(
self,
key: CrateNum
) -> <features_query<'tcx> as QueryConfig>::Stored[src]
self,
key: CrateNum
) -> <features_query<'tcx> as QueryConfig>::Stored
pub fn resolve_instance(
self,
key: ParamEnvAnd<'tcx, (DefId, SubstsRef<'tcx>)>
) -> <resolve_instance<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, (DefId, SubstsRef<'tcx>)>
) -> <resolve_instance<'tcx> as QueryConfig>::Stored
Attempt to resolve the given DefId to an Instance, for the
given generics args (SubstsRef), returning one of:
Ok(Some(instance))on successOk(None)when theSubstsRefare still too generic, and therefore don't allow finding the finalInstanceErr(ErrorReported)when theInstanceresolution process couldn't complete due to errors elsewhere - this is distinct fromOk(None)to avoid misleading diagnostics when an error has already been/will be emitted, for the original cause
pub fn resolve_instance_of_const_arg(
self,
key: ParamEnvAnd<'tcx, (LocalDefId, DefId, SubstsRef<'tcx>)>
) -> <resolve_instance_of_const_arg<'tcx> as QueryConfig>::Stored[src]
self,
key: ParamEnvAnd<'tcx, (LocalDefId, DefId, SubstsRef<'tcx>)>
) -> <resolve_instance_of_const_arg<'tcx> as QueryConfig>::Stored
pub fn normalize_opaque_types(
self,
key: &'tcx List<Predicate<'tcx>>
) -> <normalize_opaque_types<'tcx> as QueryConfig>::Stored[src]
self,
key: &'tcx List<Predicate<'tcx>>
) -> <normalize_opaque_types<'tcx> as QueryConfig>::Stored
impl<'tcx> TyCtxtAt<'tcx>[src]
pub fn ty_error(self) -> Ty<'tcx>[src]
Constructs a TyKind::Error type and registers a delay_span_bug to ensure it gets used.
pub fn ty_error_with_message(self, msg: &str) -> Ty<'tcx>[src]
Constructs a TyKind::Error type and registers a delay_span_bug with the given `msg to
ensure it gets used.
Methods from Deref<Target = TyCtxt<'tcx>>
Trait Implementations
impl<'tcx> Clone for TyCtxtAt<'tcx>[src]
impl<'tcx> Copy for TyCtxtAt<'tcx>[src]
impl<'tcx> Deref for TyCtxtAt<'tcx>[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for TyCtxtAt<'tcx>
impl<'tcx> !Send for TyCtxtAt<'tcx>
impl<'tcx> !Sync for TyCtxtAt<'tcx>
impl<'tcx> Unpin for TyCtxtAt<'tcx>
impl<'tcx> !UnwindSafe for TyCtxtAt<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
T: Copy, [src]
T: Copy,
pub fn allocate_on(Self, &'a Arena<'tcx>) -> &'a mut T[src]
pub fn allocate_from_iter(
&'a Arena<'tcx>,
impl IntoIterator<Item = T>
) -> &'a mut [T][src]
&'a Arena<'tcx>,
impl IntoIterator<Item = T>
) -> &'a mut [T]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeResult<T> for T[src]
type Error = !
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.