about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-04-07 15:03:13 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-04-08 08:28:54 -0700
commit0cc257eb42c72d26a151623825ecc6a8074c53cf (patch)
tree204a267b1180e3aef4edf76460502e2df021d76e /src/rustllvm/RustWrapper.cpp
parent9a33330caaaedb9eef447ae862e9b87e3aa9880f (diff)
downloadrust-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