-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for #![feature(const_float_round_methods)] #141555
Copy link
Copy link
Closed
Labels
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-langRelevant to the language teamRelevant to the language teamT-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.
Milestone
Metadata
Metadata
Assignees
Labels
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-langRelevant to the language teamRelevant to the language teamT-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
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(const_float_round_methods)]This is a tracking issue for making
constsome methods of floating point types:f64::{floor, ceil, trunc, fract, round, round_ties_even}f16,f32andf128This extends the work done in #130843
Public API
Steps / History
constsupport for float rounding methods #141521const_float_round_methods#143604Unresolved Questions
f16andf128be gated behind#[rustc_const_unstable(feature = {"f16", "f128"}, issue = "116909")](from Tracking Issue forf16andf128float types #116909) or#[rustc_const_unstable(feature = "const_float_round_methods", issue = "<this one>")]? The answer is both! Check out this comment: Addconstsupport for float rounding methods #141521 (comment).Footnotes
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩