Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 8 pull requests #123762

Merged
merged 19 commits into from
Apr 11, 2024
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8923b58
Document restricted_std
adamgemmell Feb 28, 2024
8a24ddf
Be more specific when flagging imports that are redundant due to the …
fmease Mar 23, 2024
0ef49fe
Stabilize `cstr_count_bytes`
tgross35 Apr 9, 2024
796be88
Use `fn` ptr signature instead of `{closure@..}` in infer error
estebank Apr 10, 2024
c8490a0
skip `unused_parens`'s suggestion for `Paren` in macro.
surechen Apr 1, 2024
88bcc79
Revert "Put basic impls for f16 and f128 behind cfg(not(bootstrap))"
tgross35 Apr 5, 2024
454de78
Add basic library support for `f16` and `f128`
tgross35 Mar 6, 2024
143ecc3
Add basic f16 and f128 modules
tgross35 Mar 26, 2024
311ad55
Add primitive documentation for `f16` and `f128`
tgross35 Apr 6, 2024
f0fd5ad
clean up docs for `File::sync_*`
Apr 10, 2024
3764af6
Use suggest_impl_trait in return type suggestion
compiler-errors Apr 10, 2024
aac3f24
Rollup merge of #122470 - tgross35:f16-f128-step4-libs-min, r=Amanieu
fmease Apr 10, 2024
ccab2b1
Rollup merge of #122954 - fmease:defined-by-extern-prelude, r=petroch…
fmease Apr 10, 2024
82c6f18
Rollup merge of #123314 - surechen:fix_120642, r=Nadrieril
fmease Apr 10, 2024
084d27b
Rollup merge of #123360 - adamgemmell:dev/adagem01/restricted-std, r=…
fmease Apr 10, 2024
d7d5be0
Rollup merge of #123661 - tgross35:stabilize-cstr_count_bytes, r=dtolnay
fmease Apr 10, 2024
ae88766
Rollup merge of #123703 - estebank:diag-changes-2, r=Nadrieril
fmease Apr 10, 2024
b24d2ad
Rollup merge of #123756 - lukas-code:file-sync, r=jhpratt
fmease Apr 10, 2024
2930dce
Rollup merge of #123761 - compiler-errors:suggest-more-impl-trait, r=…
fmease Apr 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add primitive documentation for f16 and f128
  • Loading branch information
tgross35 committed Apr 10, 2024
commit 311ad55c324959145fef4226bc615b8bc0e37e39
30 changes: 30 additions & 0 deletions library/core/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,22 @@ mod prim_tuple {}
#[doc(hidden)]
impl<T> (T,) {}

#[rustc_doc_primitive = "f16"]
#[doc(alias = "half")]
/// A 16-bit floating point type (specifically, the "binary16" type defined in IEEE 754-2008).
///
/// This type is very similar to [`prim@f32`] but has decreased precision because it uses half as many
/// bits. Please see [the documentation for [`prim@f32`] or [Wikipedia on
/// half-precision values][wikipedia] for more information.
///
/// *[See also the `std::f16::consts` module](crate::f16::consts).*
///
/// [wikipedia]: https://en.wikipedia.org/wiki/Half-precision_floating-point_format
#[unstable(feature = "f16", issue = "116909")]
mod prim_f16 {}

#[rustc_doc_primitive = "f32"]
#[doc(alias = "single")]
/// A 32-bit floating point type (specifically, the "binary32" type defined in IEEE 754-2008).
///
/// This type can represent a wide range of decimal numbers, like `3.5`, `27`,
Expand Down Expand Up @@ -1143,6 +1158,7 @@ impl<T> (T,) {}
mod prim_f32 {}

#[rustc_doc_primitive = "f64"]
#[doc(alias = "double")]
/// A 64-bit floating point type (specifically, the "binary64" type defined in IEEE 754-2008).
///
/// This type is very similar to [`f32`], but has increased
Expand All @@ -1157,6 +1173,20 @@ mod prim_f32 {}
#[stable(feature = "rust1", since = "1.0.0")]
mod prim_f64 {}

#[rustc_doc_primitive = "f128"]
#[doc(alias = "quad")]
/// A 128-bit floating point type (specifically, the "binary128" type defined in IEEE 754-2008).
///
/// This type is very similar to [`prim@f32`] and [`prim@f64`], but has increased precision by using twice
/// as many bits as `f64`. Please see [the documentation for [`prim@f32`] or [Wikipedia on
/// quad-precision values][wikipedia] for more information.
///
/// *[See also the `std::f128::consts` module](crate::f128::consts).*
///
/// [wikipedia]: https://en.wikipedia.org/wiki/Quadruple-precision_floating-point_format
#[unstable(feature = "f128", issue = "116909")]
mod prim_f128 {}

#[rustc_doc_primitive = "i8"]
//
/// The 8-bit signed integer type.
Expand Down