]> git.lizzy.rs Git - rust.git/commit
Switch box_free to take the destructured contents of Box
authorMike Hommey <mh@glandium.org>
Fri, 20 Apr 2018 01:24:53 +0000 (10:24 +0900)
committerMike Hommey <mh@glandium.org>
Wed, 25 Apr 2018 02:39:07 +0000 (11:39 +0900)
commitbd8c177d49c95d94f163e9bb3c3397f38ab72640
treee38da85ae2387fb6fb9b3b3928438d93ce206adf
parent64f5233c445406cc576b9ce371af3211c05a26e4
Switch box_free to take the destructured contents of Box

As of now, Box only contains a Unique pointer, so this is the sole
argument to box_free. Consequently, we remove the code supporting
the previous box_free signature. We however keep the old definition
for bootstrapping purpose.
src/liballoc/alloc.rs
src/liballoc/arc.rs
src/liballoc/rc.rs
src/librustc_mir/util/elaborate_drops.rs