diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-08 15:36:38 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-08 15:37:45 -0700 |
| commit | febd7ee239c1182147317a0e31057a0e69e260ff (patch) | |
| tree | d8219a413d16f712a7c88ba39e519a6af96e8821 /src/libsyntax | |
| parent | d99ca69cf7207e31d7ddffe849a4235cc63899d7 (diff) | |
| download | rust-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
