Files
rust/compiler
Jacob Pratt ac49339e03 Rollup merge of #141521 - ruancomelli:const-float-rounding, r=RalfJung
Add `const` support for float rounding methods

# Add `const` support for float rounding methods

This PR makes the following float rounding methods `const`:

- `f64::{floor, ceil, trunc, round, round_ties_even}`
- and the corresponding methods for `f16`, `f32` and `f128`

Tracking issue: https://github.com/rust-lang/rust/issues/141555

## Procedure

I followed https://github.com/rust-lang/rust/commit/c09ed3e767a73d83673790f74c357432fa44d320 as closely as I could in making float methods `const`, and also received great guidance from https://internals.rust-lang.org/t/const-rounding-methods-in-float-types/22957/3?u=ruancomelli.

## Note

This is my first code contribution to the Rust project, so please let me know if I missed anything - I'd be more than happy to revise and learn more. Thank you for taking the time to review it!
2025-06-01 00:35:53 +02:00
..
2025-05-30 02:28:35 +10:00
2025-05-28 15:14:34 +01:00
2025-05-27 14:11:14 +03:00
2025-05-28 15:14:34 +01:00
2025-05-27 14:11:14 +03:00
2025-05-30 02:28:35 +10:00
2025-05-30 02:28:35 +10:00
2025-04-15 10:44:28 -04:00
2025-05-12 15:33:37 +02:00
2025-05-27 11:14:45 +00:00
2025-05-27 11:14:45 +00:00