mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 05:51:58 +00:00
Rollup merge of #78554 - camelid:improve-drop_in_place-docs-wording, r=jyn514
Improve wording of `core::ptr::drop_in_place` docs And two small intra-doc link conversions in `std::{f32, f64}`.
This commit is contained in:
commit
73d0340fd5
@ -99,9 +99,9 @@ mod mut_ptr;
|
||||
/// dropped normally.
|
||||
///
|
||||
/// * It is friendlier to the optimizer to do this over [`ptr::read`] when
|
||||
/// dropping manually allocated memory (e.g., when writing Box/Rc/Vec),
|
||||
/// as the compiler doesn't need to prove that it's sound to elide the
|
||||
/// copy.
|
||||
/// dropping manually allocated memory (e.g., in the implementations of
|
||||
/// `Box`/`Rc`/`Vec`), as the compiler doesn't need to prove that it's
|
||||
/// sound to elide the copy.
|
||||
///
|
||||
/// * It can be used to drop [pinned] data when `T` is not `repr(packed)`
|
||||
/// (pinned data must not be moved before it is dropped).
|
||||
|
@ -1,7 +1,7 @@
|
||||
//! This module provides constants which are specific to the implementation
|
||||
//! of the `f32` floating point data type.
|
||||
//!
|
||||
//! *[See also the `f32` primitive type](../../std/primitive.f32.html).*
|
||||
//! *[See also the `f32` primitive type](primitive@f32).*
|
||||
//!
|
||||
//! Mathematically significant numbers are provided in the `consts` sub-module.
|
||||
//!
|
||||
|
@ -1,7 +1,7 @@
|
||||
//! This module provides constants which are specific to the implementation
|
||||
//! of the `f64` floating point data type.
|
||||
//!
|
||||
//! *[See also the `f64` primitive type](../../std/primitive.f64.html).*
|
||||
//! *[See also the `f64` primitive type](primitive@f64).*
|
||||
//!
|
||||
//! Mathematically significant numbers are provided in the `consts` sub-module.
|
||||
//!
|
||||
|
Loading…
Reference in New Issue
Block a user