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 af99af1 commit bb79c28Copy full SHA for bb79c28
library/core/src/convert/num.rs
@@ -185,9 +185,8 @@ impl_from!(u32 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0
185
// impl_from!(u64 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
186
187
// float -> float
188
-// FIXME(f16_f128): adding additional `From<{float}>` impls to `f32` breaks inference. See
189
-// <https://github.com/rust-lang/rust/issues/123831>
190
impl_from!(f16 => f64, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
+impl_from!(f16 => f32, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
191
impl_from!(f16 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
192
impl_from!(f32 => f64, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
193
impl_from!(f32 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments