Feature gate: #![feature(f32_from_f16)]
This is a tracking issue the From<f16> for f32 instance. Issue #123831 describes the problem:
Adding a From for f32 impl breaks some inference that currently works. From #123824:
fn main() {
let x = f32::from(3.14);
}
The type checker now implements a workaround to keep that code compiling in the presence of the f16 implementation. Because that is a workaround, and we might get a better solution in the future, the implementation is kept unstable for now.
Public API
From<f16> for f32 { /* ... */ }
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(f32_from_f16)]This is a tracking issue the
From<f16> for f32instance. Issue #123831 describes the problem:The type checker now implements a workaround to keep that code compiling in the presence of the
f16implementation. Because that is a workaround, and we might get a better solution in the future, the implementation is kept unstable for now.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.){float}tof32whenf32: From<{float}>and addimpl From<f16> for f32#139087Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩