Commit 79a5881
committed
Don't special-case
Don't unnecessarily try to obtain the type-dependent definition of callees
in `visit_expr`, 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.
* actually `TypeRelative` paths we don't resolve them twice (with
slightly different spans)ExprKind::Call
1 parent 516bace commit 79a5881
1 file changed
Lines changed: 7 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | 319 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
336 | 327 | | |
337 | 328 | | |
338 | 329 | | |
| |||
0 commit comments