We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f2aeea + 7cee309 commit 0f4296aCopy full SHA for 0f4296a
core/src/alloc/mod.rs
@@ -94,8 +94,9 @@ impl fmt::Display for AllocError {
94
///
95
/// # Safety
96
97
-/// * Memory blocks returned from an allocator must point to valid memory and retain their validity
98
-/// until the instance and all of its copies and clones are dropped,
+/// * Memory blocks returned from an allocator that are [*currently allocated*] must point to
+/// valid memory and retain their validity while they are [*currently allocated*] and at
99
+/// least one of the instance and all of its clones has not been dropped.
100
101
/// * copying, cloning, or moving the allocator must not invalidate memory blocks returned from this
102
/// allocator. A copied or cloned allocator must behave like the same allocator, and
0 commit comments