about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-24 11:08:20 +0100
committerGitHub <noreply@github.com>2024-11-24 11:08:20 +0100
commit220251e1816c31bda083d2d5a9a0238bc489a837 (patch)
treef59eed092701d6a58a7452054868947052d6fe76 /compiler/rustc_codegen_llvm/src
parent5d1c99275d479df7e288bc2eb08826ea9ee10614 (diff)
parent6f7dc380310acdb6cc6de922b93619b6c16018d7 (diff)
downloadrust-220251e1816c31bda083d2d5a9a0238bc489a837.tar.gz
rust-220251e1816c31bda083d2d5a9a0238bc489a837.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions