diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-02 18:11:29 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-02 21:44:14 -0700 |
| commit | c2bb2f08372ad6e688ea0b7915d003cd4053cfec (patch) | |
| tree | 6a6889c010b1d40256683455dcf1e844cf856b59 /src/libsyntax/parse/eval.rs | |
| parent | c9c3a49bfccf03e53f70cfaaaa85a622c50e5d2b (diff) | |
| download | rust-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/eval.rs')
0 files changed, 0 insertions, 0 deletions
