about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2018-04-19 07:47:07 +0900
committerMike Hommey <mh@glandium.org>2018-04-20 09:31:45 +0900
commit43b24c6c83acbd7ef63a97cf45b1a622d2cd61b0 (patch)
tree93ef599e9a6e3db6d73a4acd6e3140d59ed41f88 /src/test/incremental/thinlto
parent8830a0304327ba8c983555ac5d42cec0569c31bb (diff)
downloadrust-43b24c6c83acbd7ef63a97cf45b1a622d2cd61b0.tar.gz
rust-43b24c6c83acbd7ef63a97cf45b1a622d2cd61b0.zip
Pass the right type to box_free() in MIR
Currently, MIR just passes the raw Box to box_free(), which happens to
work because practically, it's the same thing. But that might not be
true in the future, with Box<T, A: Alloc>.

The MIR inline pass actually fixes up the argument while inlining
box_free, but this is not enabled by default and doesn't necessarily
happen (the inline threshold needs to be passed).

This change effectively moves what the MIR inline pass does to the
elaborate_drops pass, so that box_free() is passed the raw pointer
instead of the Box.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions