Commit e344dd1
committed
Account for resolved generics for
One concrete example is when we have a partially resolved generic type
which calls a `Self`-returning method, e.g. `Vec<String, _>::new()`.
Previously, the returned type for `Self`-returning methods would return
the unresolved, generic type as encountered in the impl header (so
`Vec<T, A: AllocRef = Global>` in this case). However, if the method
match already carries some information about generics (T := String
here), make sure to account for it.Self-returning methods1 parent fcf3432 commit e344dd1
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
531 | 540 | | |
532 | 541 | | |
533 | 542 | | |
| |||
0 commit comments