Skip to content

Commit ae20405

Browse files
committed
Update for upstream changes: rust-lang/rust#43554
1 parent 4a8ff00 commit ae20405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/eval_context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
196196
let primval = match *const_val {
197197
Integral(const_int) => PrimVal::Bytes(const_int.to_u128_unchecked()),
198198

199-
Float(ConstFloat::F32(f)) => PrimVal::from_f32(f),
200-
Float(ConstFloat::F64(f)) => PrimVal::from_f64(f),
199+
Float(ConstFloat { ty: ast::FloatTy::F32, bits }) => PrimVal::Bytes(bits),
200+
Float(ConstFloat { ty: ast::FloatTy::F64, bits }) => PrimVal::Bytes(bits),
201201

202202
Bool(b) => PrimVal::from_bool(b),
203203
Char(c) => PrimVal::from_char(c),

0 commit comments

Comments
 (0)