diff options
| author | bors <bors@rust-lang.org> | 2014-01-13 11:06:41 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-13 11:06:41 -0800 |
| commit | b8c60f906b897f413997f17f0376402061993c8d (patch) | |
| tree | c7c60c8fdca421eda207f3e86d144e804da8c631 /src/rustllvm/RustWrapper.cpp | |
| parent | b97ace2f6b361f10541586e69371f4924ce967c6 (diff) | |
| parent | c74c854adc83eb311aef722e64c0af81ea09f1a1 (diff) | |
| download | rust-b8c60f906b897f413997f17f0376402061993c8d.tar.gz rust-b8c60f906b897f413997f17f0376402061993c8d.zip | |
auto merge of #11482 : fhahn/rust/issue-8005-better-error-msg-semi-last-stmt, r=alexcrichton
This is a patch for #8005, thanks @lfairy for the hint. It seems like `block.expr` is None, if the last line of a function has a semi colon (= it ends with a statement). @kmcallister does this error message cover the intended use cases? I'm not sure about the message, the wording and the span could probably be improved.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
