]> git.lizzy.rs Git - rust.git/commit
Resolve the callee type in check_call before autoderef
authorJames Miller <james@aatch.net>
Thu, 29 Sep 2016 04:07:03 +0000 (17:07 +1300)
committerJames Miller <james@aatch.net>
Thu, 29 Sep 2016 04:07:03 +0000 (17:07 +1300)
commitec2e05194f02fea51ad19de3498b9f6818166f1c
treee5d62c7db12ed5ff18ed370a012002a14d5a527e
parent388c3f25f95c55add63d436a8e8bb207d003c63b
Resolve the callee type in check_call before autoderef

If the callee type is an associated type, then it needs to be normalized
before trying to deref it. This matches the behaviour of
`check_method_call` for autoderef behaviour in calls.

Fixes #36786
src/librustc_typeck/check/callee.rs
src/test/run-pass/issue-36786-resolve-call.rs [new file with mode: 0644]