about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-10-22 09:45:33 +0900
committerGitHub <noreply@github.com>2020-10-22 09:45:33 +0900
commitae95005ecc453560cf49377583fb6c41fd10ca8b (patch)
tree01f78d8646b724c91502edca05d1a6731e2e11b7 /src/test/codegen/src-hash-algorithm
parent813066c4429e7582b08dbf3af2c12a5f2e1b2a16 (diff)
parentdc29c7a72f63dcad65e5ec3899a0eb114798bdfd (diff)
downloadrust-ae95005ecc453560cf49377583fb6c41fd10ca8b.tar.gz
rust-ae95005ecc453560cf49377583fb6c41fd10ca8b.zip
Rollup merge of #77976 - oliviacrain:issue-77915-fix, r=matthewjasper
Mark inout asm! operands as used in liveness pass

Variables used in `inout` operands in inline assembly (that is, they're used as both input and output to some arbitrary assembly instruction) are being marked as read and written, but are not marked as being used in the RWU table during the liveness pass. This can result in such expressions triggering an unused variable lint warning. This is incorrect behavior- reads without uses are currently only used for compound assignments. We conservatively assume that an `inout` operand is being read and used in the context of the assembly instruction.

Closes #77915
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions