Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Aug 11, 2021
1 parent e8225cd commit 8aab198
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,6 @@ public void TestInvalidStateAssembler() {
var ex = Assert.Throws<InvalidOperationException>(() => assembler.rep.Assemble(writer, 0));
Assert.Contains("Unused prefixes", ex.Message);
}
{
var assembler = new Assembler(Bitness);
var label = assembler.CreateLabel(("BadLabel"));
assembler.Label(ref label);
var writer = new CodeWriterImpl();
var ex = Assert.Throws<InvalidOperationException>(() => assembler.Assemble(writer, 0));
Assert.Contains("Unused label", ex.Message);
}
}

[Fact]
Expand Down
1 change: 1 addition & 0 deletions src/rust/iced-x86/src/code_asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub use crate::IcedError;
use crate::Instruction;
use alloc::vec::Vec;
use core::hash::{Hash, Hasher};
use core::usize;

mod private {
pub trait Sealed {}
Expand Down
2 changes: 1 addition & 1 deletion src/rust/iced-x86/src/code_asm/code_asm_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl CodeAssembler {
/// assert_eq!(a.instructions(), vec![
/// Instruction::with1(Code::Push_r64, Register::RCX)?,
/// Instruction::with2(Code::Xor_rm64_r64, Register::RCX, Register::RDX)?,
/// ]);
/// ].as_slice());
/// # Ok(())
/// # }
/// ```
Expand Down

0 comments on commit 8aab198

Please sign in to comment.