From 653ee6136a2e9b09926a9f3d02efb01e17e846de Mon Sep 17 00:00:00 2001 From: Jake Hughes Date: Fri, 13 Oct 2023 14:16:53 +0100 Subject: [PATCH] Make NonFinalizable implement Clone --- library/core/src/gc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/gc.rs b/library/core/src/gc.rs index f07d3cadbf63f..11c5f51736e80 100644 --- a/library/core/src/gc.rs +++ b/library/core/src/gc.rs @@ -19,7 +19,7 @@ pub unsafe trait FinalizerOptional {} /// because of the orphan rule. However, if `NonFinalizable` is used as a /// field type of another type which is finalizable, then `T` will also be /// finalized. -#[derive(Debug, PartialEq, Eq)] +#[derive(Debug, PartialEq, Eq, Clone)] #[rustc_diagnostic_item = "non_finalizable"] pub struct NonFinalizable(T);