diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-04-07 15:03:13 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-08 08:28:54 -0700 |
| commit | 0cc257eb42c72d26a151623825ecc6a8074c53cf (patch) | |
| tree | 204a267b1180e3aef4edf76460502e2df021d76e /src/rustllvm/RustWrapper.cpp | |
| parent | 9a33330caaaedb9eef447ae862e9b87e3aa9880f (diff) | |
| download | rust-0cc257eb42c72d26a151623825ecc6a8074c53cf.tar.gz rust-0cc257eb42c72d26a151623825ecc6a8074c53cf.zip | |
rustc: Run destructors when dest=Ignore
Previously, if statements of the form "Foo;" or "let _ = Foo;" were encountered where Foo had a destructor, the destructors were not run. This changes the relevant locations in trans to check for ty::type_needs_drop and invokes trans_to_lvalue instead of trans_into. Closes #4734 Closes #6892
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
