asm! macro does not mark variable as used #77915
Labels
A-inline-assembly
Area: Inline assembly (`asm!(…)`)
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
F-asm
`#![feature(asm)]` (not `llvm_asm`)
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
Compiler doesn't generate any warnings
Instead, this happened:
Rustc says that
src
is unused, even though it is declared asinout
in asm.Adding arrows (
inout("rsi") src => src
) fixes itMeta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: