File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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> {
163163}
164164```
165165
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
167167case, the ` Self ` type is ` Box<u16> ` – that unifies with both impls,
168168because the first applies to all types ` T ` , and the second to all
169169` 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.
248248
249249One interesting twist has to do with nested obligations. In general, in codegen,
250250we 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.
252252That is because it can sometimes inform the results of type inference.
253253That is, we do not have the full substitutions in terms of the type variables
254254of 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