Add comment to `AllocRef` implementation for `System`
This commit is contained in:
parent
2f215b61b6
commit
d9d35cc696
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue