Skip to content

Commit 8abd1e4

Browse files
authored
Unrolled build for rust-lang#134930
Rollup merge of rust-lang#134930 - RalfJung:ptr-docs-valid-access, r=jhpratt ptr docs: make it clear that we are talking only about memory accesses This should make it harder to take this sentence out of context and misunderstand it.
2 parents 80f5a81 + e36b4c9 commit 8abd1e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/core/src/ptr/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
//! The precise rules for validity are not determined yet. The guarantees that are
1616
//! provided at this point are very minimal:
1717
//!
18-
//! * For operations of [size zero][zst], *every* pointer is valid, including the [null] pointer.
19-
//! The following points are only concerned with non-zero-sized accesses.
18+
//! * For memory accesses of [size zero][zst], *every* pointer is valid, including the [null]
19+
//! pointer. The following points are only concerned with non-zero-sized accesses.
2020
//! * A [null] pointer is *never* valid.
2121
//! * For a pointer to be valid, it is necessary, but not always sufficient, that the pointer be
2222
//! *dereferenceable*. The [provenance] of the pointer is used to determine which [allocated

0 commit comments

Comments
 (0)