File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ This can lead to ICEs and other problems in the compiler.
114
114
115
115
## Improvements to the basic algorithm
116
116
117
- In the description basic algorithm, we said that at the end of
117
+ In the description of the basic algorithm, we said that at the end of
118
118
compilation we would save the results of all the queries that were
119
119
performed. In practice, this can be quite wasteful – many of those
120
120
results are very cheap to recompute, and serializing and deserializing
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ They return the result of the query.
141
141
#### How providers are setup
142
142
143
143
When the tcx is created, it is given the providers by its creator using
144
- the ` Providers ` struct. This struct is generate by the macros here, but it
144
+ the ` Providers ` struct. This struct is generated by the macros here, but it
145
145
is basically a big list of function pointers:
146
146
147
147
``` rust
Original file line number Diff line number Diff line change @@ -263,13 +263,13 @@ Confirmation is where an error would be reported because the impl specified
263
263
that ` Target ` would be ` usize ` , but the obligation reported ` char ` . Hence the
264
264
result of selection would be an error.
265
265
266
- Note that the candidate impl is chosen base on the ` Self ` type, but
266
+ Note that the candidate impl is chosen based on the ` Self ` type, but
267
267
confirmation is done based on (in this case) the ` Target ` type parameter.
268
268
269
269
### Selection during translation
270
270
271
271
As mentioned above, during type checking, we do not store the results of trait
272
- selection. At trans time, repeat the trait selection to choose a particular
272
+ selection. At trans time, we repeat the trait selection to choose a particular
273
273
impl for each method call. In this second selection, we do not consider any
274
274
where-clauses to be in scope because we know that each resolution will resolve
275
275
to a particular impl.
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ for some fresh `'cx` and `'tcx` – the latter corresponds to the lifetime of
39
39
this temporary arena, and the ` 'cx ` is the lifetime of the ` InferCtxt ` itself.
40
40
(Again, see the [ ` ty ` chapter] [ ty-ch ] for more details on this setup.)
41
41
42
- The ` tcx.infer_ctxt ` method actually returns a build , which means
42
+ The ` tcx.infer_ctxt ` method actually returns a builder , which means
43
43
there are some kinds of configuration you can do before the ` infcx ` is
44
44
created. See ` InferCtxtBuilder ` for more information.
45
45
You can’t perform that action at this time.
0 commit comments