Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named inline assembly labels are denied by default #31

Open
Madouura opened this issue Apr 6, 2022 · 0 comments
Open

Named inline assembly labels are denied by default #31

Madouura opened this issue Apr 6, 2022 · 0 comments

Comments

@Madouura
Copy link

Madouura commented Apr 6, 2022

   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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant