-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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 arithmeticC-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.
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.
joseluis, phip1611, RunDevelopment and AngheloAlf
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 arithmeticC-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.