Tracking issue for #![feature(const_float_bits_conv)]
#72447
Closed
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
Assignees
Labels
Area: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Floating point numbers and arithmeticCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are tracked on the team's project board.Relevant to the library API team, which will review and decide on the PR/issue.