Skip to content

Conversation

@pczarn
Copy link
Contributor

@pczarn pczarn commented Aug 19, 2014

It's unfortunate that the read+write operands need special treatment in the AST. A separate vec for all expressions is an alternative, but it doesn't play nicely with trans.

Fixes #14936

@pczarn pczarn changed the title Fix double evaluation of read+write operands Fix double evaluation of read+write operands in inline assembly Aug 19, 2014
Stop read+write expressions from expanding into two occurences
in the AST. Add a bool to indicate whether an operand in output
position if read+write or not.

Fixes rust-lang#14936
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops. Force pushed a fix for the warning and added this part to fix prettifying.

bors added a commit that referenced this pull request Aug 20, 2014
It's unfortunate that the read+write operands need special treatment in the AST. A separate vec for all expressions is an alternative, but it doesn't play nicely with trans.

Fixes #14936
@bors bors closed this Aug 20, 2014
@bors bors merged commit 4155643 into rust-lang:master Aug 20, 2014
@pczarn pczarn deleted the inline-asm branch January 14, 2015 16:57
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 25, 2024
internal: Render assoc item owner in hover for items other than functions

Closes rust-lang/rust-analyzer#16603
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

Successfully merging this pull request may close these issues.

asm! evaluates read-write constraint ("+r") expression twice

3 participants