Skip to content

Commit 3ad3bb6

Browse files
lcnr's suggestions
Co-authored-by: lcnr <rust@lcnr.de>
1 parent f355369 commit 3ad3bb6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

compiler/rustc_trait_selection/src/solve/alias_relate.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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

compiler/rustc_trait_selection/src/solve/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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

compiler/rustc_trait_selection/src/solve/weak_types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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.
66
use rustc_middle::traits::solve::{Certainty, Goal, QueryResult};
77
use rustc_middle::ty;
88

0 commit comments

Comments
 (0)