Skip to content

Tracking Issue for #![feature(const_float_round_methods)] #141555

Closed

Description

@ruancomelli

Feature gate: #![feature(const_float_round_methods)]

This is a tracking issue for making const some methods of floating point types:

  • f64::{floor, ceil, trunc, fract, round, round_ties_even}
  • and the corresponding methods for f16, f32 and f128

This extends the work done in #130843

Public API

// in `core`
impl <float> {
    // ...
    pub const fn floor(self) -> Self;
    pub const fn ceil(self) -> Self;
    pub const fn trunc(self) -> Self;
    pub const fn fract(self) -> Self;
    pub const fn round(self) -> Self;
    pub const fn round_ties_even(self) -> Self;
    // ...
}

Steps / History

Unresolved Questions

Footnotes

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩

Activity

  1. added
    T-libs-api
    C-tracking-issue
    S-tracking-unimplemented
    on May 25, 2025
  2. added 2 commits that reference this issue on May 31, 2025
  3. added a commit that references this issue on Jun 1, 2025
  4. nxsaken commented on Jun 30, 2025

    @nxsaken
    Contributor

    @Amanieu seems like this has been implemented, and there are no unresolved questions. Should we start an FCP?

  5. Amanieu commented on Jun 30, 2025

    @Amanieu
    Member

    @rfcbot merge

  6. rfcbot commented on Jun 30, 2025

    @rfcbot

    Team member @Amanieu has proposed to merge this. The next step is review by the rest of the tagged team members:

    No concerns currently listed.

    Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

    cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns.
    See this document for info about what commands tagged team members can give me.

  7. 11 remaining items

  8. rfcbot commented on Jul 9, 2025

    @rfcbot

    🔔 This is now entering its final comment period, as per the review above. 🔔

  9. traviscross commented on Jul 9, 2025

    @traviscross
    Contributor

    The stabilization PR is now in FCP as well:

  10. added
    finished-final-comment-period
    to-announce
    and removed
    final-comment-period
    on Jul 19, 2025
  11. rfcbot commented on Jul 19, 2025

    @rfcbot

    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.

  12. added a commit that references this issue on Jul 20, 2025
    efc7e4b
  13. added a commit that references this issue on Jul 20, 2025
    3a8853e
  14. added a commit that references this issue on Jul 20, 2025
    a8c2e54
  15. added a commit that references this issue on Jul 20, 2025
    0db500d
  16. added a commit that references this issue on Jul 21, 2025
    9489d5b
  17. removed
    to-announce
    on Jul 24, 2025
  18. added a commit that references this issue on Jul 29, 2025
    716cc45
  19. added this to the 1.90.0 milestone on Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueS-tracking-unimplementedT-langT-libs-apidisposition-mergefinished-final-comment-period

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions