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.
Default
std::alloc::System
1 parent fbd34ef commit 8733b2aCopy full SHA for 8733b2a
src/libstd/alloc.rs
@@ -130,7 +130,7 @@ pub use alloc_crate::alloc::*;
130
/// program opts in to using jemalloc as the global allocator, `System` will
131
/// still allocate memory using `malloc` and `HeapAlloc`.
132
#[stable(feature = "alloc_system_type", since = "1.28.0")]
133
-#[derive(Debug, Copy, Clone)]
+#[derive(Debug, Default, Copy, Clone)]
134
pub struct System;
135
136
// The Alloc impl just forwards to the GlobalAlloc impl, which is in `std::sys::*::alloc`.
0 commit comments