Skip to content

Commit cdb6eec

Browse files
author
Oliver Schneider
committed
need to get the Expr_ out of the P
1 parent 9459f7d commit cdb6eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/trans/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ fn const_expr_unadjusted<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
614614
Ok(val) => const_val_for_idx(cx, val, param_substs, ety),
615615
Err(NonConstPath) => {
616616
let (bv, bt) = const_expr(cx, &**base, param_substs);
617-
let iv = try!(const_eval::eval_const_index(cx.tcx(), index));
617+
let iv = try!(const_eval::eval_const_index(cx.tcx(), &**index));
618618
let (arr, len) = match bt.sty {
619619
ty::ty_vec(_, Some(u)) => (bv, C_uint(cx, u)),
620620
ty::ty_vec(_, None) | ty::ty_str => {

0 commit comments

Comments
 (0)