"argument never used" in new asm! syntax #72965
Labels
A-inline-assembly
Area: Inline assembly (`asm!(…)`)
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.
When trying to use the new
asm!
syntax to implement something similar tostd::hint::black_box
, it fails with an "argument never used" error. For example (https://godbolt.org/z/mG9AMg):This makes it impossible to use the new
asm!
syntax in one of my crates (cesarb/clear_on_drop@43cd2be with CI output at https://travis-ci.org/github/cesarb/clear_on_drop/jobs/694467164).The text was updated successfully, but these errors were encountered: