mozilla/rust — pull request #11482 by fhahn (2014-01-11 22:38:25+00:00)
Title: Better error message for semicolon on last line of function

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.