]> git.lizzy.rs Git - rust.git/commit
Permit node types to be missing if type errors occurred previously
authorBarosl Lee <vcs@barosl.com>
Sat, 10 Jan 2015 20:07:43 +0000 (05:07 +0900)
committerBarosl Lee <vcs@barosl.com>
Sun, 11 Jan 2015 10:42:18 +0000 (19:42 +0900)
commita0155444cff7f4f479c568b474057e6efb73502c
tree5361491460d50e8dd8ab2692f8a4d0dbe424db4a
parentd2d35db570f0d5da1b0b829e38b495e763a0a60b
Permit node types to be missing if type errors occurred previously

If the type of a node cannot be determined due to a previous type error,
a "no type for node" ICE occurs. This commit makes it return ty_err
instead in such a case.

Fixes #20401.
Fixes #20506.
Fixes #20614.
Fixes #20752.
Fixes #20829.
Fixes #20846.
Fixes #20885.
Fixes #20886.
src/librustc_typeck/check/mod.rs
src/test/compile-fail/no-type-for-node-ice.rs [new file with mode: 0644]