We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
impl From<f16> for f32
1 parent cfde659 commit f5e00ecCopy full SHA for f5e00ec
library/core/src/convert/num.rs
@@ -184,8 +184,7 @@ impl_from!(u32 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0
184
// impl_from!(u64 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
185
186
// float -> float
187
-// FIXME(f16_f128): adding additional `From<{float}>` impls to `f32` breaks inference. See
188
-// <https://github.com/rust-lang/rust/issues/123831>
+impl_from!(f16 => f32, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
189
impl_from!(f16 => f64, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
190
impl_from!(f16 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
191
impl_from!(f32 => f64, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments