about summary refs log tree commit diff
path: root/src/libsyntax/parse/classify.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-08-02 18:11:29 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-08-02 21:44:14 -0700
commitc2bb2f08372ad6e688ea0b7915d003cd4053cfec (patch)
tree6a6889c010b1d40256683455dcf1e844cf856b59 /src/libsyntax/parse/classify.rs
parentc9c3a49bfccf03e53f70cfaaaa85a622c50e5d2b (diff)
downloadrust-c2bb2f08372ad6e688ea0b7915d003cd4053cfec.tar.gz
rust-c2bb2f08372ad6e688ea0b7915d003cd4053cfec.zip
When checking loop bodies and do-expr bodies, don't require the expected type to exist
If the expected type is none (due to a type error), we shouldn't fail with an ICE, but
rather, just print out another type error. Changed the do-expr type error message to
make sense in this context (see the test case for how it works).

Closes #3044.
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
0 files changed, 0 insertions, 0 deletions