From d953b43d05aa86ac2384168442f28fce69d99dc5 Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Fri, 21 Jun 2019 10:19:16 -0700 Subject: [PATCH] Derive Clone, Copy, and Hash for BasicBlock --- src/basic_block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic_block.rs b/src/basic_block.rs index ee056aa8bac82..b1411982d78a9 100644 --- a/src/basic_block.rs +++ b/src/basic_block.rs @@ -19,7 +19,7 @@ use std::rc::Rc; /// A well formed `BasicBlock` is a list of non terminating instructions followed by a single terminating /// instruction. `BasicBlock`s are allowed to be malformed prior to running validation because it may be useful /// when constructing or modifying a program. -#[derive(PartialEq, Eq)] +#[derive(PartialEq, Eq, Clone, Copy, Hash)] pub struct BasicBlock { pub(crate) basic_block: LLVMBasicBlockRef, }