Skip to content

Commit 0d7a64e

Browse files
authored
Merge pull request rust-lang#88 from cdisselkoen/derives-for-basicblock
Derive Clone, Copy, and Hash for BasicBlock
2 parents 67aed4c + d953b43 commit 0d7a64e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic_block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use std::rc::Rc;
1919
/// A well formed `BasicBlock` is a list of non terminating instructions followed by a single terminating
2020
/// instruction. `BasicBlock`s are allowed to be malformed prior to running validation because it may be useful
2121
/// when constructing or modifying a program.
22-
#[derive(PartialEq, Eq)]
22+
#[derive(PartialEq, Eq, Clone, Copy, Hash)]
2323
pub struct BasicBlock {
2424
pub(crate) basic_block: LLVMBasicBlockRef,
2525
}

0 commit comments

Comments
 (0)