We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e5fec2 commit d9ef419Copy full SHA for d9ef419
library/core/src/ptr/mod.rs
@@ -1403,8 +1403,6 @@ pub const unsafe fn read<T>(src: *const T) -> T {
1403
/// whether `T` is [`Copy`]. If `T` is not [`Copy`], using both the returned
1404
/// value and the value at `*src` can [violate memory safety][read-ownership].
1405
///
1406
-/// Note that even if `T` has size `0`, the pointer must be non-null.
1407
-///
1408
/// [read-ownership]: read#ownership-of-the-returned-value
1409
/// [valid]: self#safety
1410
@@ -1611,8 +1609,6 @@ pub const unsafe fn write<T>(dst: *mut T, src: T) {
1611
1609
1612
1610
/// * `dst` must be [valid] for writes.
1613
1614
1615
1616
1617
1618
/// ## On `packed` structs
0 commit comments