Skip to content

Commit 7de470b

Browse files
authored
[ptr] Document maximum allocation size
1 parent df4379b commit 7de470b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/ptr/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
//! separate allocated object), heap allocations (each allocation created by the global allocator is
6666
//! a separate allocated object), and `static` variables.
6767
//!
68+
//! It is guaranteed that an allocated object never spans more than `isize::MAX` bytes.
69+
//!
6870
//! # Strict Provenance
6971
//!
7072
//! **The following text is non-normative, insufficiently formal, and is an extremely strict

0 commit comments

Comments
 (0)