rust/library/core/src
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
..
alloc make const_alloc_layout feature gate only about functions that are already stable 2024-11-01 14:32:59 +01:00
array Rollup merge of #133332 - bjoernager:const-array-as-mut-slice, r=jhpratt 2024-11-23 20:19:54 +08:00
ascii
async_iter
cell Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
char Auto merge of #132709 - programmerjake:optimize-charto_digit, r=joshtriplett 2024-11-14 14:14:40 +00:00
clone
cmp
convert
ffi Rollup merge of #132732 - gavincrawford:as_ptr_attribute, r=Urgau 2024-11-20 01:54:24 -05:00
fmt Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee 2024-11-14 07:07:53 +00:00
future rustdoc-search: simplify rules for generics and type params 2024-10-30 12:27:48 -07:00
hash remove const_hash feature leftovers 2024-11-02 11:27:14 +01:00
intrinsics Stabilize const_float_methods 2024-11-23 18:42:44 +01:00
io
iter Auto merge of #130867 - michirakara:steps_between, r=dtolnay 2024-11-22 10:54:22 +00:00
macros add const_eval_select macro to reduce redundancy 2024-11-05 09:26:08 +01:00
mem Rollup merge of #132732 - gavincrawford:as_ptr_attribute, r=Urgau 2024-11-20 01:54:24 -05:00
net Stabilize Ipv6Addr::is_unique_local and Ipv6Addr::is_unicast_link_local 2024-11-12 11:38:27 +01:00
num Rollup merge of #133389 - eduardosm:stabilize-const_float_methods, r=RalfJung 2024-11-24 11:08:20 +01:00
ops constify Add 2024-11-21 18:56:49 +08:00
panic stabilize const_arguments_as_str 2024-11-03 07:49:24 +01:00
prelude
ptr clean up const stability around UB checks 2024-11-16 22:50:22 +01:00
range
slice Rollup merge of #132732 - gavincrawford:as_ptr_attribute, r=Urgau 2024-11-20 01:54:24 -05:00
str Rollup merge of #132732 - gavincrawford:as_ptr_attribute, r=Urgau 2024-11-20 01:54:24 -05:00
sync Rollup merge of #131717 - tgross35:stabilize-const_atomic_from_ptr, r=RalfJung 2024-11-16 21:05:43 +01:00
task get rid of a whole bunch of unnecessary rustc_const_unstable attributes 2024-11-02 09:59:55 +01:00
unicode stabilize const_unicode_case_lookup 2024-11-12 15:13:31 +01:00
any.rs
arch.rs
ascii.rs
asserting.rs
bool.rs
borrow.rs
cell.rs Rollup merge of #132732 - gavincrawford:as_ptr_attribute, r=Urgau 2024-11-20 01:54:24 -05:00
clone.rs Make CloneToUninit dyn-compatible 2024-11-12 15:08:41 -06:00
cmp.rs
default.rs
error.md
error.rs
escape.rs
hint.rs Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
internal_macros.rs
lib.miri.rs
lib.rs Rollup merge of #133389 - eduardosm:stabilize-const_float_methods, r=RalfJung 2024-11-24 11:08:20 +01:00
marker.rs Deduplicate checking drop terminator 2024-11-22 16:54:41 +00:00
option.rs stabilize const_option_ext 2024-11-12 21:42:15 +01:00
panic.rs const_panic: inline in bootstrap builds to avoid f16/f128 crashes 2024-11-18 18:17:02 +01:00
panicking.rs add const_eval_select macro to reduce redundancy 2024-11-05 09:26:08 +01:00
pat.rs
pin.rs Stabilize const_pin_2 2024-11-20 07:54:12 -05:00
primitive.rs
primitive_docs.rs Rollup merge of #132136 - RalfJung:target-feature-abi-compat, r=Mark-Simulacrum 2024-11-10 10:09:52 +01:00
random.rs
range.rs
result.rs rustdoc-search: simplify rules for generics and type params 2024-10-30 12:27:48 -07:00
time.rs get rid of a whole bunch of unnecessary rustc_const_unstable attributes 2024-11-02 09:59:55 +01:00
tuple.rs
ub_checks.rs clean up const stability around UB checks 2024-11-16 22:50:22 +01:00
unit.rs