about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorEdward Wang <edward.yu.wang@gmail.com>2014-02-18 03:32:12 +0800
committerEdward Wang <edward.yu.wang@gmail.com>2014-02-19 20:54:44 +0800
commit111e092481ec8a6e958f3f4d3e13eaccd844d99e (patch)
tree670b34fbd74cd8fa89ca8e7dc466060a7beef4e4 /src/rustllvm/PassWrapper.cpp
parentc4afcf44d2c70b2c176bdf283082a7bdd4be5826 (diff)
downloadrust-111e092481ec8a6e958f3f4d3e13eaccd844d99e.tar.gz
rust-111e092481ec8a6e958f3f4d3e13eaccd844d99e.zip
Change the format_args! macro expansion for temporaries
Currently, the format_args! macro and its downstream macros in turn
expand to series of let statements, one for each of its arguments, and
then the invocation of the macro function. If one or more of the
arguments are RefCell's, the enclosing statement for the temporary of
the let is the let itself, which leads to scope problem. This patch
changes let's to a match expression.

Closes #12239.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions