From 487c1e3b75d71dfaf7f9075bb8fa00a92f1de0ca Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 25 Jun 2020 01:26:07 -0400 Subject: [PATCH] Derive more things for UnionVariant --- compiler/mono/src/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/mono/src/layout.rs b/compiler/mono/src/layout.rs index c233f122a8..87edce0f39 100644 --- a/compiler/mono/src/layout.rs +++ b/compiler/mono/src/layout.rs @@ -373,7 +373,7 @@ pub fn record_fields_btree<'a>( } } -#[derive(Debug)] +#[derive(Clone, Debug, PartialEq, Eq, Hash)] pub enum UnionVariant<'a> { Never, Unit,