Expand description
Code which is used by built-in goals that match “structurally”, such a auto
traits, Copy/Clone.
Re-exports§
use derive_where::derive_where;🔒use rustc_type_ir::data_structures::HashMap;🔒use rustc_type_ir::lang_items::SolverProjectionLangItem;🔒use rustc_type_ir::lang_items::SolverTraitLangItem;🔒use rustc_type_ir::solve::SizedTraitKind;🔒use rustc_type_ir::solve::inspect::ProbeKind;🔒use rustc_type_ir as ty;🔒use rustc_type_ir::FallibleTypeFolder;🔒use rustc_type_ir::Interner;🔒use rustc_type_ir::Movability;🔒use rustc_type_ir::Mutability;🔒use rustc_type_ir::Region;🔒use rustc_type_ir::TypeFoldable;🔒use rustc_type_ir::TypeSuperFoldable;🔒use rustc_type_ir::Unnormalized;🔒use rustc_type_ir::Upcast as _;🔒use rustc_type_ir::elaborate;🔒use rustc_type_ir_macros::TypeFoldable_Generic;🔒use rustc_type_ir_macros::TypeVisitable_Generic;🔒use tracing::instrument;🔒use tracing::instrument;🔒use crate::delegate::SolverDelegate;🔒use crate::solve::AdtDestructorKind;🔒use crate::solve::EvalCtxt;🔒use crate::solve::Goal;🔒use crate::solve::NoSolution;🔒use crate::solve::NoSolutionOrRerunNonErased;🔒use crate::solve::RerunNonErased;🔒use rustc_type_ir::inherent::*;🔒
Structs§
- Async
Callable 🔒Relevant Types - Relevant types for an async callable, including its inputs, output, and the return type you get from awaiting the output.
- Replace
Projection 🔒With
Enums§
Functions§
- const_
conditions_ 🔒for_ destruct - coroutine_
closure_ 🔒to_ ambiguous_ coroutine - Given a coroutine-closure, project to its returned coroutine when we are not certain that the closure’s kind is compatible with the goal, and therefore also don’t know yet what the closure’s upvars are.
- coroutine_
closure_ 🔒to_ certain_ coroutine - Given a coroutine-closure, project to its returned coroutine when we are certain that the closure’s kind is compatible with the goal.
- extract_
fn_ 🔒def_ from_ const_ callable - This duplicates
extract_tupled_inputs_and_output_from_callablebut needs to return different information (namely, the def id and args) so that we can create const conditions. - extract_
tupled_ 🔒inputs_ and_ output_ from_ async_ callable - extract_
tupled_ 🔒inputs_ and_ output_ from_ callable - fn_
item_ 🔒to_ async_ callable - instantiate_
constituent_ 🔒tys_ for_ auto_ trait - instantiate_
constituent_ 🔒tys_ for_ copy_ clone_ trait - instantiate_
constituent_ 🔒tys_ for_ sizedness_ trait - predicates_
for_ 🔒object_ candidate - Assemble a list of predicates that would be present on a theoretical user impl for an object type. These predicates must be checked any time we assemble a built-in object candidate for an object type, since they are not implied by the well-formedness of the type.