Files
rust/tests/ui/consts
Matthias Krüger 220251e181 Rollup merge of #133389 - eduardosm:stabilize-const_float_methods, r=RalfJung
Stabilize `const_float_methods`

Tracking issue: https://github.com/rust-lang/rust/issues/130843
Relnotes: #133383

Stabilized const API:

```rust
// in `core`
impl f32/f64 {
    pub const fn recip(self) -> Self;
    pub const fn to_degrees(self) -> Self;
    pub const fn to_radians(self) -> Self;
    pub const fn max(self, other: Self) -> Self;
    pub const fn min(self, other: Self) -> Self;
    pub const fn clamp(self, min: Self, max: Self) -> Self;
    pub const fn abs(self) -> Self;
    pub const fn signum(self) -> Self;
    pub const fn copysign(self, sign: Self) -> Self;
}
```

Closes https://github.com/rust-lang/rust/issues/130843

r? libs-api

cc `@RalfJung` -- I think the way const-stability attributes work have change a bit since the last time a wrote a const-stabilization PR, please make sure I got them right.
2024-11-24 11:08:20 +01:00
..
2024-11-23 18:42:44 +01:00
2024-09-14 18:07:06 +02:00
2024-09-15 10:20:47 +02:00
2024-01-13 12:46:58 -05:00
2024-11-03 18:59:31 +00:00
2024-09-15 09:51:32 +02:00
2024-08-18 19:46:53 +02:00
2024-02-07 10:42:01 +08:00
2024-09-15 09:51:32 +02:00
2024-09-15 09:51:32 +02:00
2024-11-03 18:59:31 +00:00
2024-11-03 18:59:31 +00:00
2024-10-12 17:07:13 -04:00
2024-10-12 17:07:13 -04:00
2023-11-12 04:33:19 +00:00
2023-01-31 17:26:06 +00:00
2024-01-13 12:46:58 -05:00
2024-02-25 12:03:48 +01:00
2024-04-21 15:43:43 -03:00
2024-04-21 15:43:43 -03:00
2024-04-21 15:43:43 -03:00
2024-04-21 15:43:43 -03:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-04-03 15:59:21 +00:00
2023-07-27 15:51:02 +00:00
2023-04-03 15:59:21 +00:00
2024-09-15 09:51:32 +02:00
2024-04-24 13:12:33 +01:00
2023-10-08 10:06:17 +00:00
2024-10-07 16:29:52 +00:00
2024-01-24 07:56:23 +01:00
2024-01-24 07:56:23 +01:00
2024-09-15 09:51:32 +02:00
2023-01-15 19:46:20 +00:00
2024-11-01 16:53:36 +08:00
2024-11-16 22:50:22 +01:00
2024-09-14 18:07:06 +02:00
2024-01-13 12:46:58 -05:00