diff options
| author | bors <bors@rust-lang.org> | 2024-10-04 18:03:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-04 18:03:16 +0000 |
| commit | 14f303bc1430a78ddaa91b3e104bbe4c0413184e (patch) | |
| tree | 5867a1c322277e34f53a68c5132827e0b2cbd681 /compiler/rustc_parse/src/errors.rs | |
| parent | c39f318c5e734e7f254c6b2589205d6ed936443d (diff) | |
| parent | c39ae569d6ab2fa3e8be19cb68d42732bbf082d4 (diff) | |
| download | rust-14f303bc1430a78ddaa91b3e104bbe4c0413184e.tar.gz rust-14f303bc1430a78ddaa91b3e104bbe4c0413184e.zip | |
Auto merge of #130157 - eduardosm:stabilize-const_float_classify, r=RalfJung
Stabilize `const_float_classify`
Tracking issue: https://github.com/rust-lang/rust/issues/72505
Also reverts https://github.com/rust-lang/rust/pull/114486
Closes https://github.com/rust-lang/rust/issues/72505
Stabilized const API:
```rust
impl f32 {
pub const fn is_nan(self) -> bool;
pub const fn is_infinite(self) -> bool;
pub const fn is_finite(self) -> bool;
pub const fn is_subnormal(self) -> bool;
pub const fn is_normal(self) -> bool;
pub const fn classify(self) -> FpCategory;
pub const fn is_sign_positive(self) -> bool;
pub const fn is_sign_negative(self) -> bool;
}
impl f64 {
pub const fn is_nan(self) -> bool;
pub const fn is_infinite(self) -> bool;
pub const fn is_finite(self) -> bool;
pub const fn is_subnormal(self) -> bool;
pub const fn is_normal(self) -> bool;
pub const fn classify(self) -> FpCategory;
pub const fn is_sign_positive(self) -> bool;
pub const fn is_sign_negative(self) -> bool;
}
```
cc `@rust-lang/wg-const-eval` `@rust-lang/libs-api`
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
