diff options
| author | iximeow <me@iximeow.net> | 2019-10-19 22:05:22 -0700 | 
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2020-01-12 16:10:13 -0800 | 
| commit | 81c6cdd1b508402edc16ab2ae88379d951c8cfa6 (patch) | |
| tree | f69dfc510e4b8670b57818d98c769b1618014a87 /src | |
| parent | 23bc549b35ee7f6ebf256fa2e3d6ef0d5dd808d9 (diff) | |
warnings-b-gone
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 5 | 
1 files changed, 0 insertions, 5 deletions
@@ -2,8 +2,6 @@  #[macro_use] extern crate serde_derive;  #[cfg(feature="use-serde")]  extern crate serde; -#[cfg(feature="use-serde")] -use serde::{Serialize, Deserialize};  extern crate yaxpeax_arch;  extern crate termion; @@ -2186,7 +2184,6 @@ fn read_E_anybank<T: Iterator<Item=u8>>(bytes_iter: &mut T, instr: &mut Instruct  #[inline]  fn width_to_gp_reg_bank(width: u8, rex: bool) -> RegisterBank { -    use std::hint::unreachable_unchecked;      match width {          1 => return if rex { RegisterBank::rB } else { RegisterBank::B },          2 => return RegisterBank::W, @@ -2198,7 +2195,6 @@ fn width_to_gp_reg_bank(width: u8, rex: bool) -> RegisterBank {  pub fn read_instr<T: Iterator<Item=u8>>(mut bytes_iter: T, instruction: &mut Instruction) -> Option<()> {      let mut alternate_opcode_map: Option<OpcodeMap> = None; -    use std::hint::unreachable_unchecked;  //    use std::intrinsics::unlikely;      instruction.prefixes = Prefixes::new(0);      let record: OpcodeRecord = loop { @@ -3240,7 +3236,6 @@ pub fn read_operands<T: Iterator<Item=u8>>(mut bytes_iter: T, instruction: &mut          _ => {              instruction.operands = [Operand::Nothing, Operand::Nothing];              instruction.opcode = Opcode::Invalid; -        //    use std::hint::unreachable_unchecked;              return None; // Err(format!("unsupported operand code: {:.unwrap()}", operand_code));          //    unsafe { unreachable_unchecked(); }          }  | 
