]> git.lizzy.rs Git - rust.git/commitdiff
Make `AllocErr` copyable
authorTim Diekmann <tim.diekmann@3dvision.de>
Wed, 22 Apr 2020 20:40:21 +0000 (22:40 +0200)
committerTim Diekmann <tim.diekmann@3dvision.de>
Wed, 22 Apr 2020 20:40:21 +0000 (22:40 +0200)
src/libcore/alloc/mod.rs

index e1892edb7c7f3014852ecf9bbfcbd58d1fb30b2f..86a6fa7f8ba3c82a6113225b03e7c4302ab2f3e9 100644 (file)
@@ -18,7 +18,7 @@
 /// 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)