about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-22 23:19:25 +0200
committerGitHub <noreply@github.com>2020-04-22 23:19:25 +0200
commitbb13aab8e570b8b062b494f3cbbf569ed6830c68 (patch)
treee71b93ba155cbc3a94cc26c896db3c72ef338d8e /src
parent0f806534c01ea906a2e178b31ea2733a92e4bc0a (diff)
parent863d2d92ba6b86771c69bf48111e131e5cd4c801 (diff)
downloadrust-bb13aab8e570b8b062b494f3cbbf569ed6830c68.tar.gz
rust-bb13aab8e570b8b062b494f3cbbf569ed6830c68.zip
Rollup merge of #71440 - TimDiekmann:copy-allocerr, r=Amanieu
Implement `Copy` for `AllocErr`

r? @Amanieu
Diffstat (limited to 'src')
-rw-r--r--src/libcore/alloc/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/alloc/mod.rs b/src/libcore/alloc/mod.rs
index e1892edb7c7..86a6fa7f8ba 100644
--- a/src/libcore/alloc/mod.rs
+++ b/src/libcore/alloc/mod.rs
@@ -18,7 +18,7 @@ use crate::ptr::{self, NonNull};
 /// something wrong when combining the given input arguments with this
 /// allocator.
 #[unstable(feature = "allocator_api", issue = "32838")]
-#[derive(Clone, PartialEq, Eq, Debug)]
+#[derive(Copy, Clone, PartialEq, Eq, Debug)]
 pub struct AllocErr;
 
 // (we need this for downstream impl of trait Error)