]> git.lizzy.rs Git - rust.git/commitdiff
Add comment, which was removed by accident (again)
authorTim Diekmann <tim.diekmann@3dvision.de>
Tue, 18 Aug 2020 08:00:31 +0000 (10:00 +0200)
committerTim Diekmann <tim.diekmann@3dvision.de>
Tue, 18 Aug 2020 08:00:31 +0000 (10:00 +0200)
library/std/src/alloc.rs

index 6121063504ff595fe5472eeb1f7ac8a022bedfb1..bc895640fd22c16382a527999aedb03df0863d40 100644 (file)
@@ -187,6 +187,8 @@ fn grow_impl(
     }
 }
 
+// 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]