We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0834bd1 commit 2750e3cCopy full SHA for 2750e3c
src/liballoc/heap.rs
@@ -26,6 +26,9 @@ pub unsafe fn allocate(size: usize, align: usize) -> *mut u8 {
26
///
27
/// On failure, return a null pointer and leave the original allocation intact.
28
29
+/// If the allocation was relocated, the memory at the passed-in pointer is
30
+/// undefined after the call.
31
+///
32
/// Behavior is undefined if the requested size is 0 or the alignment is not a
33
/// power of 2. The alignment must be no larger than the largest supported page
34
/// size on the platform.
0 commit comments