]> git.lizzy.rs Git - rust.git/commitdiff
Add `Default` to `std::alloc::System`
authorTim Diekmann <21277928+TimDiekmann@users.noreply.github.com>
Tue, 26 Mar 2019 23:09:12 +0000 (00:09 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2019 23:09:12 +0000 (00:09 +0100)
src/libstd/alloc.rs

index a13da2901df94cac80cd831c6c5e7eda856c7828..4241f47b661d721b742a0b9bc8124592d7efeb8e 100644 (file)
 /// program opts in to using jemalloc as the global allocator, `System` will
 /// still allocate memory using `malloc` and `HeapAlloc`.
 #[stable(feature = "alloc_system_type", since = "1.28.0")]
-#[derive(Debug, Copy, Clone)]
+#[derive(Debug, Default, Copy, Clone)]
 pub struct System;
 
 // The Alloc impl just forwards to the GlobalAlloc impl, which is in `std::sys::*::alloc`.