You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
std: TotalF64, a float with a total order and key semantics (D96) #2182
D96 (2026-10-05) refuses a float as a map key, and the error names a std wrapper for programs that do want float keys: TotalF64 (and TotalF32), a float with a total order and its -0.0/NaN rules spelled out, usable as a key and with <.
To decide in the implementation, from the references: IEEE 754 totalOrder (Rust's f64::total_cmp) orders -0.0 < +0.0 and NaNs by payload; a key wrapper that wants -0.0 == 0.0 canonicalizes first. The spec sentence goes with the type.
Activity
spec v7.26 (D97, D98): TotalF64 is a numeric float key; None sorts fi…
D44 map transfers, D97 TotalF64, deep-debugging tools, and the fixes …
ehartford commentedon Oct 6, 2026
Fixed in #2204 (5cb113b): TotalF64/TotalF32 in std.traits (D97, D99); battery green on d5c6ef3.