about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-13 11:06:41 -0800
committerbors <bors@rust-lang.org>2014-01-13 11:06:41 -0800
commitb8c60f906b897f413997f17f0376402061993c8d (patch)
treec7c60c8fdca421eda207f3e86d144e804da8c631 /src/rustllvm/RustWrapper.cpp
parentb97ace2f6b361f10541586e69371f4924ce967c6 (diff)
parentc74c854adc83eb311aef722e64c0af81ea09f1a1 (diff)
downloadrust-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