Commit 710fac1
committed
Don't special-case
Don't unnecessarily try to obtain the type-dependent definition of callees.
Just let `visit_qpath` handle callees.
This means that for callees that are `Resolved` paths (the majority of callees)
we don't try to `typeck` the enclosing body which should improve perf if the
body doesn't contain any type-dependent definitions.ExprKind::Call
1 parent b6dde5a commit 710fac1
1 file changed
Lines changed: 6 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | 298 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
312 | 305 | | |
313 | 306 | | |
314 | 307 | | |
| |||
0 commit comments