diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/long_mode/mod.rs | 3 | ||||
| -rw-r--r-- | src/protected_mode/mod.rs | 3 | 
2 files changed, 6 insertions, 0 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 5ca6542..2935385 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -429,6 +429,7 @@ enum SizeCode {  }  #[derive(Clone, Debug, PartialEq)] +#[non_exhaustive]  pub enum Operand {      ImmediateI8(i8),      ImmediateU8(u8), @@ -883,6 +884,7 @@ const XSAVE: [Opcode; 10] = [  #[allow(non_camel_case_types)]  #[derive(Copy, Clone, Debug, Eq, PartialEq)] +#[non_exhaustive]  pub enum Opcode {      Invalid,      ADD, @@ -1997,6 +1999,7 @@ impl yaxpeax_arch::Instruction for Instruction {  }  #[derive(Debug, PartialEq)] +#[non_exhaustive]  pub enum DecodeError {      ExhaustedInput,      InvalidOpcode, diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs index 6394de0..a089fc2 100644 --- a/src/protected_mode/mod.rs +++ b/src/protected_mode/mod.rs @@ -366,6 +366,7 @@ enum SizeCode {  }  #[derive(Clone, Debug, PartialEq)] +#[non_exhaustive]  pub enum Operand {      ImmediateI8(i8),      ImmediateU8(u8), @@ -782,6 +783,7 @@ const XSAVE: [Opcode; 10] = [  // UMWAIT  #[allow(non_camel_case_types)]  #[derive(Copy, Clone, Debug, Eq, PartialEq)] +#[non_exhaustive]  pub enum Opcode {      Invalid,      ADD, @@ -1800,6 +1802,7 @@ impl yaxpeax_arch::Instruction for Instruction {  }  #[derive(Debug, PartialEq)] +#[non_exhaustive]  pub enum DecodeError {      ExhaustedInput,      InvalidOpcode,  | 
