rustc: check_const: avoid recursing into a block's tail expression twice.
This commit is contained in:
parent
eb0b76a603
commit
a0c07dabd1
@ -168,9 +168,6 @@ fn check_expr(v: &mut CheckCrateVisitor, e: &ast::Expr) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(ref expr) = block.expr {
|
||||
check_expr(v, &**expr);
|
||||
}
|
||||
}
|
||||
ast::ExprVec(_) |
|
||||
ast::ExprAddrOf(ast::MutImmutable, _) |
|
||||
|
Loading…
x
Reference in New Issue
Block a user