mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
ae95005ecc
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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |