about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstd/alloc.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/alloc.rs b/src/libstd/alloc.rs
index f295565bec3..6e8ac7c9036 100644
--- a/src/libstd/alloc.rs
+++ b/src/libstd/alloc.rs
@@ -134,6 +134,8 @@ pub use alloc_crate::alloc::*;
 #[derive(Debug, Default, Copy, Clone)]
 pub struct System;
 
+// The AllocRef impl checks the layout size to be non-zero and forwards to the GlobalAlloc impl,
+// which is in `std::sys::*::alloc`.
 #[unstable(feature = "allocator_api", issue = "32838")]
 unsafe impl AllocRef for System {
     #[inline]