Skip to content

Commit

Permalink
Merge pull request rust-lang#88 from cdisselkoen/derives-for-basicblock
Browse files Browse the repository at this point in the history
Derive Clone, Copy, and Hash for BasicBlock
  • Loading branch information
TheDan64 authored Jun 27, 2019
2 parents 67aed4c + d953b43 commit 0d7a64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 0d7a64e

Please sign in to comment.