Commit b0583bf
committed
Pick methods from the right receivers
Previously we have been picking methods for receiver types even though
we are inspecting other receiver types that are several levels of
dereferences, which is wasted effort because there will never be matches
with these methods.
Signed-off-by: Xiangfei Ding <dingxiangfei2009@protonmail.ch>1 parent 4067bd8 commit b0583bf
4 files changed
Lines changed: 447 additions & 143 deletions
File tree
- compiler
- rustc_data_structures/src
- rustc_hir_typeck/src/method
- tests/ui/methods
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments