Skip to content

Tracking issue for #![feature(const_float_bits_conv)] #72447

Closed
@ecstatic-morse

Description

Tracking issue for the #![feature(const_float_bits_conv)] feature gate, which makes the following methods on f32 and f64 const fn:

  • formerly #![feature(float_bits_conv)]
    • to_bits
    • from_bits
  • formerly #![feature(float_to_from_bytes)]
    • to_bytes_be
    • to_bytes_le
    • to_bytes_ne
    • from_bytes_be
    • from_bytes_le
    • from_bytes_ne

These require transmute within a const fn to stabilize, and–unlike the recently stabilized #![feature(const_int_conversion)]–do not have a const-stable alternate implementation. Nevertheless, these may be useful for nightly users.

Stabilization is blocked on #57241.

Metadata

Labels

A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)A-floating-pointArea: Floating point numbers and arithmeticC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions