File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 35
35
//! be used for inter-thread synchronization.
36
36
//! * The result of casting a reference to a pointer is valid for as long as the
37
37
//! underlying object is live and no reference (just raw pointers) is used to
38
- //! access the same memory.
38
+ //! access the same memory. That is, reference and pointer accesses cannot be
39
+ //! interleaved.
39
40
//!
40
41
//! These axioms, along with careful use of [`offset`] for pointer arithmetic,
41
42
//! are enough to correctly implement many useful things in unsafe code. Stronger guarantees
64
65
//! separate allocated object), heap allocations (each allocation created by the global allocator is
65
66
//! a separate allocated object), and `static` variables.
66
67
//!
67
- //!
68
68
//! # Strict Provenance
69
69
//!
70
70
//! **The following text is non-normative, insufficiently formal, and is an extremely strict
You can’t perform that action at this time.
0 commit comments