We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd35e2f + 69721de commit 723f0c4Copy full SHA for 723f0c4
library/std/src/alloc.rs
@@ -68,7 +68,10 @@ pub use alloc_crate::alloc::*;
68
/// The default memory allocator provided by the operating system.
69
///
70
/// This is based on `malloc` on Unix platforms and `HeapAlloc` on Windows,
71
-/// plus related functions.
+/// plus related functions. However, it is not valid to mix use of the backing
72
+/// system allocator with `System`, as this implementation may include extra
73
+/// work, such as to serve alignment requests greater than the alignment
74
+/// provided directly by the backing system allocator.
75
76
/// This type implements the `GlobalAlloc` trait and Rust programs by default
77
/// work as if they had this definition:
0 commit comments