@@ -29,7 +29,7 @@ have to prove and the `param_env` in which this predicate has to hold.
29
29
We prove goals by checking whether each possible [ ` Candidate ` ] applies for the given goal by
30
30
recursively proving its nested goals. For a list of possible candidates with examples, look at
31
31
[ ` CandidateSource ` ] . The most important candidates are ` Impl ` candidates, i.e. trait implementations
32
- written by the user, and ` ParamEnv ` candidates, i.e. assumptions in our current environment.
32
+ written by the user, and ` ParamEnv ` candidates, i.e. assumptions in our current environment.
33
33
34
34
Looking at the above example, to prove ` Vec<T>: Clone ` we first use
35
35
` impl<T: Clone> Clone for Vec<T> ` . To use this impl we have to prove the nested
@@ -64,7 +64,7 @@ We can however get overflow as in the following snippet:
64
64
fn foo <T : Trait >(x : )
65
65
```
66
66
67
- ### 3 . Trait goals in empty environments are proven by a unique impl .
67
+ ### 3 . Trait goals in empty environments are proven by a unique impl
68
68
69
69
If a trait goal holds with an empty environment , there is a unique `impl `,
70
70
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
110
110
[ `Goal` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/struct.Goal.html
111
111
[ `Predicate` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Predicate.html
112
112
[ `Candidate` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/assembly/struct.Candidate.html
113
- [ `CandidateSource` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/trait_goals /enum.CandidateSource.html
114
- [ `CanonicalResponse` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/type.CanonicalResponse.html
113
+ [ `CandidateSource` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/assembly /enum.CandidateSource.html
114
+ [ `CanonicalResponse` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/solve/type.CanonicalResponse.html
0 commit comments