Skip to content

Commit a0c07da

Browse files
committed
rustc: check_const: avoid recursing into a block's tail expression twice.
1 parent eb0b76a commit a0c07da

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/librustc/middle/check_const.rs

-3
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ fn check_expr(v: &mut CheckCrateVisitor, e: &ast::Expr) {
168168
}
169169
}
170170
}
171-
if let Some(ref expr) = block.expr {
172-
check_expr(v, &**expr);
173-
}
174171
}
175172
ast::ExprVec(_) |
176173
ast::ExprAddrOf(ast::MutImmutable, _) |

0 commit comments

Comments
 (0)