@@ -1074,7 +1074,22 @@ mod prim_tuple {}
1074
1074
#[ doc( hidden) ]
1075
1075
impl < T > ( T , ) { }
1076
1076
1077
+ #[ rustc_doc_primitive = "f16" ]
1078
+ #[ doc( alias = "half" ) ]
1079
+ /// A 16-bit floating point type (specifically, the "binary16" type defined in IEEE 754-2008).
1080
+ ///
1081
+ /// This type is very similar to [`prim@f32`] but has decreased precision because it uses half as many
1082
+ /// bits. Please see [the documentation for [`prim@f32`] or [Wikipedia on
1083
+ /// half-precision values][wikipedia] for more information.
1084
+ ///
1085
+ /// *[See also the `std::f16::consts` module](crate::f16::consts).*
1086
+ ///
1087
+ /// [wikipedia]: https://en.wikipedia.org/wiki/Half-precision_floating-point_format
1088
+ #[ unstable( feature = "f16" , issue = "116909" ) ]
1089
+ mod prim_f16 { }
1090
+
1077
1091
#[ rustc_doc_primitive = "f32" ]
1092
+ #[ doc( alias = "single" ) ]
1078
1093
/// A 32-bit floating point type (specifically, the "binary32" type defined in IEEE 754-2008).
1079
1094
///
1080
1095
/// This type can represent a wide range of decimal numbers, like `3.5`, `27`,
@@ -1143,6 +1158,7 @@ impl<T> (T,) {}
1143
1158
mod prim_f32 { }
1144
1159
1145
1160
#[ rustc_doc_primitive = "f64" ]
1161
+ #[ doc( alias = "double" ) ]
1146
1162
/// A 64-bit floating point type (specifically, the "binary64" type defined in IEEE 754-2008).
1147
1163
///
1148
1164
/// This type is very similar to [`f32`], but has increased
@@ -1157,6 +1173,20 @@ mod prim_f32 {}
1157
1173
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1158
1174
mod prim_f64 { }
1159
1175
1176
+ #[ rustc_doc_primitive = "f128" ]
1177
+ #[ doc( alias = "quad" ) ]
1178
+ /// A 128-bit floating point type (specifically, the "binary128" type defined in IEEE 754-2008).
1179
+ ///
1180
+ /// This type is very similar to [`prim@f32`] and [`prim@f64`], but has increased precision by using twice
1181
+ /// as many bits as `f64`. Please see [the documentation for [`prim@f32`] or [Wikipedia on
1182
+ /// quad-precision values][wikipedia] for more information.
1183
+ ///
1184
+ /// *[See also the `std::f128::consts` module](crate::f128::consts).*
1185
+ ///
1186
+ /// [wikipedia]: https://en.wikipedia.org/wiki/Quadruple-precision_floating-point_format
1187
+ #[ unstable( feature = "f128" , issue = "116909" ) ]
1188
+ mod prim_f128 { }
1189
+
1160
1190
#[ rustc_doc_primitive = "i8" ]
1161
1191
//
1162
1192
/// The 8-bit signed integer type.
0 commit comments