-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-floating-pointArea: Floating point numbers and arithmeticArea: Floating point numbers and arithmeticB-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Description
Tracking issue for the #![feature(const_float_classify)]
feature gate, which makes the following methods on f32
and f64
const fn
:
classify
is_nan
is_infinite
is_finite
is_subnormal
is_normal
is_sign_positive
is_sign_negative
These require #72447 (#![feature(const_float_bits_conv)]
), so this is transitively blocked on #57241.
marmeladema, joseluis and orzogc
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-floating-pointArea: Floating point numbers and arithmeticArea: Floating point numbers and arithmeticB-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
Rollup merge of rust-lang#72449 - ecstatic-morse:const-float-bitcast,…
Auto merge of rust-lang#72449 - ecstatic-morse:const-float-bitcast, r…
VolumeLevel::ZERO
bevyengine/bevy#10608eq_op
lint in clippy is confusing for floats rust-lang/rust-clippy#12222RalfJung commentedon Aug 3, 2024
#57241 is being proposed for stabilization, so this feature is also finally (transitively) unblocked. :)
Note that #114486 should also be reverted when
is_nan
becomes const-stable.const_float_classify
#1301573 remaining items
rfcbot commentedon Sep 24, 2024
🔔 This is now entering its final comment period, as per the review above. 🔔
rfcbot commentedon Oct 4, 2024
The final comment period, with a disposition to merge, as per the review above, is now complete.
As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.
This will be merged soon.
#![feature(const_float_classify)]
#131251Auto merge of rust-lang#130157 - eduardosm:stabilize-const_float_clas…
Auto merge of #130157 - eduardosm:stabilize-const_float_classify, r=R…
Auto merge of #130157 - eduardosm:stabilize-const_float_classify, r=R…