From 66a651244ee810d9027c0ff2266a097d9aa06b59 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Tue, 18 Aug 2020 10:00:31 +0200 Subject: [PATCH] Add comment, which was removed by accident (again) --- library/std/src/alloc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/std/src/alloc.rs b/library/std/src/alloc.rs index 6121063504f..bc895640fd2 100644 --- a/library/std/src/alloc.rs +++ b/library/std/src/alloc.rs @@ -187,6 +187,8 @@ impl 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]