]> git.lizzy.rs Git - rust.git/commit
Fix double evaluation of read+write operands
authorPiotr Czarnecki <pioczarn@gmail.com>
Tue, 19 Aug 2014 19:39:26 +0000 (20:39 +0100)
committerPiotr Czarnecki <pioczarn@gmail.com>
Tue, 19 Aug 2014 19:39:26 +0000 (20:39 +0100)
commit4155643428f10530cbdfe579c83f5070d58a18dd
tree70e8e08503e62bfe45b808980e4d8d6134e8b6d7
parent3570095e34c58d5f40a3f81f4c970975befebe54
Fix double evaluation of read+write operands

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 #14936
12 files changed:
src/librustc/middle/cfg/construct.rs
src/librustc/middle/expr_use_visitor.rs
src/librustc/middle/liveness.rs
src/librustc/middle/trans/asm.rs
src/librustc/middle/trans/debuginfo.rs
src/librustc/middle/typeck/check/mod.rs
src/libsyntax/ast.rs
src/libsyntax/ext/asm.rs
src/libsyntax/fold.rs
src/libsyntax/print/pprust.rs
src/libsyntax/visit.rs
src/test/run-pass/issue-14936.rs [new file with mode: 0644]