]> git.lizzy.rs Git - rust.git/commit
Use ptr::drop_in_place in Vec::drop
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Wed, 2 Mar 2016 16:46:54 +0000 (17:46 +0100)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Wed, 2 Mar 2016 17:05:40 +0000 (18:05 +0100)
commitc0f8b085942c0c914c3c9d175303c23e1b4158e3
tree2966463004dbb61ecf5f3f5ea7dc88b715cb23ca
parent63c4065af00a61aef24153a1d3dde76013f433bb
Use ptr::drop_in_place in Vec::drop

Directly use the drop glue for [T]. Still optimizes out in -O1 like with
the `needs_drop` intrinsic.
src/libcollections/vec.rs