Expand description

The new trait solver, currently still WIP.

As a user of the trait system, you can use TyCtxt::evaluate_goal to interact with this solver.

For a high-level overview of how this solver works, check out the relevant section of the rustc-dev-guide.

FIXME(@lcnr): Write that section. If you read this before then ask me about it on zulip.

Modules

assembly 🔒
Code shared by trait and projection goals for candidate assembly.
fulfill 🔒
infcx_ext 🔒
Dealing with trait goals, i.e. T: Trait<'a, U>.

Structs

EvalCtxt 🔒
Additional constraints returned on success.
A trait engine using the new trait solver.
A goal is a statement, i.e. predicate, we want to prove given some assumptions, i.e. param_env.

Enums

Why we failed to evaluate a goal.

Traits

Functions

Type Definitions

The result of evaluating a canonical query.