darfink / detour-rs

A cross-platform detour library written in Rust
Other
389 stars 71 forks source link

Named inline assembly labels are denied by default #31

Open Madouura opened 2 years ago

Madouura commented 2 years ago
   Compiling matches v0.1.8
   Compiling detour v0.8.1 (/build/detour-0.8.1.tar.gz)
error: avoid using named labels in inline assembly
  --> src/arch/x86/mod.rs:46:16
   |
46 |                je ret5
   |   ________________^
47 |  |             mov eax, 2
48 |  |             jmp done
   |  |_________________^
49 | ||           ret5:
   | ||______________^
   | |_______________|
   | 
   |
   = note: `#[deny(named_asm_labels)]` on by default
   = help: only local labels of the form `<number>:` should be used in inline asm
   = note: see the asm section of the unstable book <https://doc.rust-lang.org/nightly/unstable-book/library-features/asm.html#labels> for more information

error: avoid using named labels in inline assembly
   --> src/arch/x86/mod.rs:105:18
    |
105 |               loop dest
    |  __________________^
106 | |             nop
107 | |             nop
108 | |             nop
109 | |             dest:",
    | |________________^
    |
    = help: only local labels of the form `<number>:` should be used in inline asm
    = note: see the asm section of the unstable book <https://doc.rust-lang.org/nightly/unstable-book/library-features/asm.html#labels> for more information

error: could not compile `detour` due to 2 previous errors