File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ impl<T: Get> Get for Box<T> {
163
163
}
164
164
```
165
165
166
- What happens when we invoke ` get_it (&Box::new(1_u16))` , for example? In this
166
+ What happens when we invoke ` get (&Box::new(1_u16))` , for example? In this
167
167
case, the ` Self ` type is ` Box<u16> ` – that unifies with both impls,
168
168
because the first applies to all types ` T ` , and the second to all
169
169
` Box<T> ` . In order for this to be unambiguous, the compiler does a * winnowing*
@@ -248,7 +248,7 @@ because we know that each resolution will resolve to a particular impl.
248
248
249
249
One interesting twist has to do with nested obligations. In general, in codegen,
250
250
we only to figure out which candidate applies, we do not care about nested obligations,
251
- as these are already assumed to be true. Nonetheless, we * do* currently do fulfill all of them.
251
+ as these are already assumed to be true. Nonetheless, we * do* currently fulfill all of them.
252
252
That is because it can sometimes inform the results of type inference.
253
253
That is, we do not have the full substitutions in terms of the type variables
254
254
of the impl available to us, so we must run trait selection to figure
You can’t perform that action at this time.
0 commit comments