afonso360 opened PR #4849 from fcmp-tests to main:
:wave: Hey,
This fixes #4828 by implementing PartialEq in terms of float values for the
Ieee{32,64}types.Previously
PartialEqwas auto derived. This means that it was implemented in terms of PartialEq in a u32.This is not correct for floats because
NaN != NaN.PartialOrd was manually implemented in 6d50099816f397c1ff3256d30f742cf041d54e32, but it seems like it was an oversight to leave PartialEq out until now.
The test suite depends on the previous behaviour so we adjust it to keep comparing bits instead of floats.
cc: @jameysharp
afonso360 updated PR #4849 from fcmp-tests to main.
afonso360 edited PR #4849 from fcmp-tests to main:
:wave: Hey,
This fixes #4828 by implementing
PartialEqin terms of float values for theIeee{32,64}types.Previously
PartialEqwas auto derived. This means that it was implemented in terms ofPartialEqin au32.This is not correct for floats because
NaN != NaN.
PartialOrdwas manually implemented in 6d50099816f397c1ff3256d30f742cf041d54e32, but it seems like it was an oversight to leavePartialEqout until now.The test suite depends on the previous behaviour so we adjust it to keep comparing bits instead of floats.
cc: @jameysharp
afonso360 updated PR #4849 from fcmp-tests to main.
jameysharp submitted PR review.
jameysharp merged PR #4849.
Last updated: Dec 13 2025 at 19:03 UTC