diff options
| author | Tim Diekmann <21277928+TimDiekmann@users.noreply.github.com> | 2019-03-27 00:09:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-27 00:09:12 +0100 |
| commit | 8733b2ab0c6bfe60df594e41ee9b1ce1f8caeaa0 (patch) | |
| tree | 3b67090f1c24e697f0e9f7c6e788179a12964749 /src/libstd/alloc.rs | |
| parent | fbd34efb32b9efb574899e4335bdc8c6525ac27e (diff) | |
| download | rust-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.rs | 2 |
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`. |
