lcnr's suggestions
Co-authored-by: lcnr <rust@lcnr.de>
This commit is contained in:
parent
f3553691a8
commit
3ad3bb64d9
@ -1,5 +1,6 @@
|
||||
//! Implements the `AliasRelate` goal, which is used to unify two aliases in the
|
||||
//! new solver, which uses "lazy normalization".
|
||||
//! Implements the `AliasRelate` goal, which is used when unifying aliases.
|
||||
//! Doing this via a separate goal is called "deferred alias relation" and part
|
||||
//! of our more general approach to "lazy normalization".
|
||||
//!
|
||||
//! This goal, e.g. `A alias-relate B`, may be satisfied by one of three branches:
|
||||
//! * normalizes-to: If `A` is a projection, we can prove the equivalent
|
||||
|
@ -3,7 +3,7 @@
|
||||
//! As a user of rust, you can use `-Ztrait-solver=next` or `next-coherence`
|
||||
//! to enable the new trait solver always, or just within coherence, respectively.
|
||||
//!
|
||||
//! As a developer of rustc, you probably shouldn't be using the new trait
|
||||
//! As a developer of rustc, you shouldn't be using the new trait
|
||||
//! solver without asking the trait-system-refactor-initiative, but it can
|
||||
//! be enabled with `InferCtxtBuilder::with_next_trait_solver`. This will
|
||||
//! ensure that trait solving using that inference context will be routed
|
||||
|
@ -2,7 +2,7 @@
|
||||
//! `#![feature(lazy_type_alias)]` and `#![feature(type_alias_impl_trait)]`.
|
||||
//!
|
||||
//! Since a weak alias is not ambiguous, this just computes the `type_of` of
|
||||
//! the alias and registers any where-clause predicates on the type alias.
|
||||
//! the alias and registers the where-clauses of the type alias.
|
||||
use rustc_middle::traits::solve::{Certainty, Goal, QueryResult};
|
||||
use rustc_middle::ty;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user