]> git.lizzy.rs Git - rust.git/commit
typeck: Do high-level structural/signature checks before function body checks.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 14 Apr 2015 06:42:48 +0000 (08:42 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 14 Apr 2015 09:20:21 +0000 (11:20 +0200)
commit32d5f742cb0bb8dd6c1f37a88b8ec6ad0595ae1b
treeb63a44377b48825c415d350d6f45e5040252cad4
parentfd69ac160b7252b2acaebaae02535b3f8c27dfb7
typeck: Do high-level structural/signature checks before function body checks.

This avoids various ICEs, e.g. premature calls to cat_expr that yield
the dreaded "cat_expr Errd" ICE.
src/librustc_typeck/check/mod.rs