File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
compiler/rustc_trait_selection/src/solve Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- //! Implements the `AliasRelate` goal, which is used to unify two aliases in the
2- //! new solver, which uses "lazy normalization".
1+ //! Implements the `AliasRelate` goal, which is used when unifying aliases.
2+ //! Doing this via a separate goal is called "deferred alias relation" and part
3+ //! of our more general approach to "lazy normalization".
34//!
45//! This goal, e.g. `A alias-relate B`, may be satisfied by one of three branches:
56//! * normalizes-to: If `A` is a projection, we can prove the equivalent
Original file line number Diff line number Diff line change 33//! As a user of rust, you can use `-Ztrait-solver=next` or `next-coherence`
44//! to enable the new trait solver always, or just within coherence, respectively.
55//!
6- //! As a developer of rustc, you probably shouldn't be using the new trait
6+ //! As a developer of rustc, you shouldn't be using the new trait
77//! solver without asking the trait-system-refactor-initiative, but it can
88//! be enabled with `InferCtxtBuilder::with_next_trait_solver`. This will
99//! ensure that trait solving using that inference context will be routed
Original file line number Diff line number Diff line change 22//! `#![feature(lazy_type_alias)]` and `#![feature(type_alias_impl_trait)]`.
33//!
44//! Since a weak alias is not ambiguous, this just computes the `type_of` of
5- //! the alias and registers any where-clause predicates on the type alias.
5+ //! the alias and registers the where-clauses of the type alias.
66use rustc_middle:: traits:: solve:: { Certainty , Goal , QueryResult } ;
77use rustc_middle:: ty;
88
You can’t perform that action at this time.
0 commit comments