rust-num / num-traits

Numeric traits for generic mathematics in Rust
Apache License 2.0
732 stars 135 forks source link

Outdated unsoundness information in AsPrimitive documentation #188

Closed kotauskas closed 4 years ago

kotauskas commented 4 years ago

The page for AsPrimitive mentions soundness holes from old versions of Rust related to floating point cast results, more specifically, #10184 and #15536. Those have now been resolved, which is why the documentation should remove mentions of those bugs or explicitly state that those have been fixed and no longer cause undefined behavior.

cuviper commented 4 years ago

184 updated this, but it hasn't been published in a release yet.