Commit 359b42c
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 a068f86 commit 359b42c
1 file changed
Lines changed: 6 additions & 15 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 | | - | |
312 | | - | |
313 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
314 | 305 | | |
315 | 306 | | |
316 | 307 | | |
| |||
0 commit comments