about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-03-03 08:35:51 +0000
committerbors <bors@rust-lang.org>2016-03-03 08:35:51 +0000
commit4aa913cd23057484a0128547fef9bad6e5d7bff4 (patch)
tree96bd731950903204ba3533174a25f82e29ab1b6a /src/libstd/sys/unix/stack_overflow.rs
parent7cee8b9ffb6a2dac7e2f729988c2324e2f8ac10f (diff)
parent7ceafaee4f3d8ed2268b1659dd99a541d71689a3 (diff)
downloadrust-4aa913cd23057484a0128547fef9bad6e5d7bff4.tar.gz
rust-4aa913cd23057484a0128547fef9bad6e5d7bff4.zip
Auto merge of #32012 - bluss:more-drop-in-place, r=alexcrichton
Use `drop_in_place` in Vec and VecDeque

We can use drop_in_place's DST capabilities directly in Vec::drop and similarly in VecDeque::drop. I verfied this has the same effect as the previous `needs_drop` code; `drop_in_place` it itself an intrinsic.

The VecDeque replacement should be more efficient too, even in release mode (slice iteration makes a more efficient loop than the deque iterator).
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions