Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2023-02-03 00:00:10 +09:00 committed by Tshepang Mbambo
parent 6213fc1cf5
commit 6ea7b0db51
1 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,7 @@ We can however get overflow as in the following snippet:
fn foo<T: Trait>(x: )
```
### 3. Trait goals in empty environments are proven by a unique impl.
### 3. Trait goals in empty environments are proven by a unique impl
If a trait goal holds with an empty environment, there is a unique `impl`,
either user-defined or builtin, which is used to prove that goal.
@ -110,5 +110,5 @@ Two types being equal in the type system must mean that they have the same `Type
[`Goal`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/struct.Goal.html
[`Predicate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Predicate.html
[`Candidate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/assembly/struct.Candidate.html
[`CandidateSource`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/trait_goals/enum.CandidateSource.html
[`CandidateSource`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/assembly/enum.CandidateSource.html
[`CanonicalResponse`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/type.CanonicalResponse.html