about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-08-08 15:36:38 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-08-08 15:37:45 -0700
commitfebd7ee239c1182147317a0e31057a0e69e260ff (patch)
treed8219a413d16f712a7c88ba39e519a6af96e8821 /src/libsyntax
parentd99ca69cf7207e31d7ddffe849a4235cc63899d7 (diff)
downloadrust-febd7ee239c1182147317a0e31057a0e69e260ff.tar.gz
rust-febd7ee239c1182147317a0e31057a0e69e260ff.zip
Make let _ = e; have the same semantics as e;
The first case was getting treated like a variable binding, meaning that
if e had a destructor, it wouldn't run until the end of the enclosing scope.
To me it seems less confusing for let _ = e; and e; to work exactly the same
way, so now, the destructor for e runs immediately in both cases.
Diffstat (limited to 'src/libsyntax')
0 files changed, 0 insertions, 0 deletions