From 863d2d92ba6b86771c69bf48111e131e5cd4c801 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 22 Apr 2020 22:40:21 +0200 Subject: [PATCH] Make `AllocErr` copyable --- src/libcore/alloc/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/alloc/mod.rs b/src/libcore/alloc/mod.rs index e1892edb7c7f3..86a6fa7f8ba3c 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)