]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #89202 - estebank:infer-call-type, r=oli-obk
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 1 Oct 2021 01:05:21 +0000 (18:05 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 01:05:21 +0000 (18:05 -0700)
commitb437be45ea74905298b046b521a328b0d7899511
tree96f5ebb0af818e42385053d975a0480c6dfe0e37
parent3d86aac990c0310726da05fe1fdb5827ccfc495d
parent072d107b438207e2c2c83fdf8c22bb5e8699138e
Rollup merge of #89202 - estebank:infer-call-type, r=oli-obk

Resolve infered types when complaining about unexpected call type

```
error[E0618]: expected function, found `{integer}`
  --> $DIR/call-block.rs:2:13
   |
LL |     let _ = {42}();
   |             ^^^^--
   |             |
   |             call expression requires function
```
instead of
```
error[E0618]: expected function, found `_`
  --> $DIR/call-block.rs:2:13
   |
LL |     let _ = {42}();
   |             ^^^^--
   |             |
   |             call expression requires function
```
compiler/rustc_typeck/src/check/callee.rs