diff options
| author | bors <bors@rust-lang.org> | 2013-08-18 17:12:02 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-18 17:12:02 -0700 |
| commit | 8fff3f40f290df5bcd25bcefdc0e19f74d0af0a5 (patch) | |
| tree | 8b0869e42997037fc6ad863315b248bc308d3145 /src/rustllvm/PassWrapper.cpp | |
| parent | b26e11db862a9f06556d2871b1b71e09f652e395 (diff) | |
| parent | 0450cde37b70e7c32a2d5d359836b737c5fdc657 (diff) | |
| download | rust-8fff3f40f290df5bcd25bcefdc0e19f74d0af0a5.tar.gz rust-8fff3f40f290df5bcd25bcefdc0e19f74d0af0a5.zip | |
auto merge of #8561 : kballard/rust/do-block-internal-err-msg, r=thestinger
When using a `do` block to call an internal iterator, if you forgot to
return a value from the body, it would tell you
error: Do-block body must return bool, but returns () here. Perhaps
you meant to write a `for`-loop?
This advice no longer applies as `for` loops are now for external
iterators. Delete this message outright and let it use the default error
message
error: mismatched types: expected `bool` but found `()`
r? @thestinger
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
