about summary refs log tree commit diff
path: root/src/libstd/alloc.rs
diff options
context:
space:
mode:
authorTim Diekmann <21277928+TimDiekmann@users.noreply.github.com>2019-03-27 00:09:12 +0100
committerGitHub <noreply@github.com>2019-03-27 00:09:12 +0100
commit8733b2ab0c6bfe60df594e41ee9b1ce1f8caeaa0 (patch)
tree3b67090f1c24e697f0e9f7c6e788179a12964749 /src/libstd/alloc.rs
parentfbd34efb32b9efb574899e4335bdc8c6525ac27e (diff)
downloadrust-8733b2ab0c6bfe60df594e41ee9b1ce1f8caeaa0.tar.gz
rust-8733b2ab0c6bfe60df594e41ee9b1ce1f8caeaa0.zip
Add `Default` to `std::alloc::System`
Diffstat (limited to 'src/libstd/alloc.rs')
-rw-r--r--src/libstd/alloc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/alloc.rs b/src/libstd/alloc.rs
index a13da2901df..4241f47b661 100644
--- a/src/libstd/alloc.rs
+++ b/src/libstd/alloc.rs
@@ -130,7 +130,7 @@ pub use alloc_crate::alloc::*;
 /// 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`.