Skip to content

Commit 5cb0387

Browse files
author
Oliver Schneider
committed
test block const eval
1 parent e71ab56 commit 5cb0387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/const_eval.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ pub fn eval_const_expr_partial<'tcx>(tcx: &ty::ctxt<'tcx>,
962962
ast::ExprBlock(ref block) => {
963963
match block.expr {
964964
Some(ref expr) => try!(eval_const_expr_partial(tcx, &**expr, ety)),
965-
None => const_int(0) // huh???
965+
None => unreachable!(),
966966
}
967967
}
968968
ast::ExprTup(_) => {

0 commit comments

Comments
 (0)