Skip to content

Commit 7613ef0

Browse files
committed
comparing floats is necessary in rare cases
1 parent 51ce4a2 commit 7613ef0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/primval.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ pub fn binary_op<'tcx>(bin_op: mir::BinOp, left: PrimVal, right: PrimVal) -> Eva
7575
Shl => unreachable!(),
7676
Shr => unreachable!(),
7777

78-
// directly comparing floats is questionable
79-
// miri could forbid it, or at least miri as rust const eval should forbid it
8078
Eq => Bool($l == $r),
8179
Ne => Bool($l != $r),
8280
Lt => Bool($l < $r),

0 commit comments

Comments
 (0)