Skip to content

Commit

Permalink
Update library/core/src/ub_checks.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Celina G. Val <[email protected]>
  • Loading branch information
carolynzech and celinval authored Oct 24, 2024
1 parent c698f1c commit 693495a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/core/src/ub_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,6 @@ trivial_invariant!(());
trivial_invariant!(bool);
trivial_invariant!(char);

// We do not constrain the safety invariant for floating point types.
// Users can create a newtype wrapping the floating point type and define an
// invariant that checks for NaN, infinite, or subnormal values.
trivial_invariant!(f16);
trivial_invariant!(f32);
trivial_invariant!(f64);
Expand Down

0 comments on commit 693495a

Please sign in to comment.