From 15c1c0652298e9dd3dee45813a2718623f6e3702 Mon Sep 17 00:00:00 2001 From: b-naber Date: Tue, 14 Jun 2022 17:34:37 +0200 Subject: rebase --- compiler/rustc_const_eval/src/interpret/operand.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_const_eval/src/interpret') diff --git a/compiler/rustc_const_eval/src/interpret/operand.rs b/compiler/rustc_const_eval/src/interpret/operand.rs index e9a9c0e1713..6b05a49575f 100644 --- a/compiler/rustc_const_eval/src/interpret/operand.rs +++ b/compiler/rustc_const_eval/src/interpret/operand.rs @@ -638,7 +638,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { span_bug!(self.cur_span(), "const_to_op: Unexpected ConstKind {:?}", c) } ty::ConstKind::Value(valtree) => { - let ty = val.ty(); + let ty = c.ty(); let const_val = self.tcx.valtree_to_const_val((ty, valtree)); self.const_val_to_op(const_val, ty, layout) } -- cgit 1.4.1-3-g733a5