Update rust to 0efb9dab8c7c07fa28e9df0eccc5c07ea3c17fbb (HIR+lints, Thu Sep 3 18:59:56 2015 +0530)

fixes #294
This commit is contained in:
Manish Goregaokar 2015-09-03 20:12:17 +05:30
parent 5b7ec55fc2
commit eca185438b
27 changed files with 66 additions and 57 deletions

View file

@ -1,7 +1,8 @@
use rustc::lint::*;
use syntax::ast::*;
use rustc_front::hir::*;
use reexport::*;
use syntax::codemap::{Span, Spanned};
use syntax::visit::FnKind;
use rustc_front::visit::FnKind;
use utils::{span_lint, snippet, match_path, in_external_macro};
@ -42,8 +43,7 @@ impl ReturnPass {
// an if/if let expr, check both exprs
// note, if without else is going to be a type checking error anyways
// (except for unit type functions) so we don't match it
ExprIf(_, ref ifblock, Some(ref elsexpr)) |
ExprIfLet(_, _, ref ifblock, Some(ref elsexpr)) => {
ExprIf(_, ref ifblock, Some(ref elsexpr)) => {
self.check_block_return(cx, ifblock);
self.check_final_expr(cx, elsexpr);
}