We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AllocRef
System
1 parent 2f215b6 commit d9d35ccCopy full SHA for d9d35cc
src/libstd/alloc.rs
@@ -134,6 +134,8 @@ pub use alloc_crate::alloc::*;
134
#[derive(Debug, Default, Copy, Clone)]
135
pub struct System;
136
137
+// The AllocRef impl checks the layout size to be non-zero and forwards to the GlobalAlloc impl,
138
+// which is in `std::sys::*::alloc`.
139
#[unstable(feature = "allocator_api", issue = "32838")]
140
unsafe impl AllocRef for System {
141
#[inline]
0 commit comments