summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/architecture.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs
index ee0e3cd3..9a7b3e72 100644
--- a/rust/src/architecture.rs
+++ b/rust/src/architecture.rs
@@ -190,7 +190,7 @@ pub trait RegisterInfo: Sized {
fn implicit_extend(&self) -> ImplicitRegisterExtend;
}
-pub trait Register: Sized + Clone + Copy {
+pub trait Register: Sized + Clone + Copy + Hash + Eq {
type InfoType: RegisterInfo<RegType = Self>;
fn name(&self) -> Cow<str>;
@@ -230,7 +230,7 @@ pub trait RegisterStack: Sized + Clone + Copy {
fn id(&self) -> u32;
}
-pub trait Flag: Sized + Clone + Copy {
+pub trait Flag: Sized + Clone + Copy + Hash + Eq {
type FlagClass: FlagClass;
fn name(&self) -> Cow<str>;