about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Diekmann <tim.diekmann@3dvision.de>2020-04-22 22:40:21 +0200
committerTim Diekmann <tim.diekmann@3dvision.de>2020-04-22 22:40:21 +0200
commit863d2d92ba6b86771c69bf48111e131e5cd4c801 (patch)
tree97b1c6bc7c7f468b9eba89fc154c0b3173e8ea4e
parent82e90d64266b8a4b53935d629786e69610b33f25 (diff)
downloadrust-863d2d92ba6b86771c69bf48111e131e5cd4c801.tar.gz
rust-863d2d92ba6b86771c69bf48111e131e5cd4c801.zip
Make `AllocErr` copyable
-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)