about summary refs log tree commit diff
path: root/src/liballoc/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-08-25 10:20:15 +0000
committerbors <bors@rust-lang.org>2017-08-25 10:20:15 +0000
commitba65645c78a87f1fa5c6d7132130bb3175fbe68b (patch)
treeabbeb24770cb1c25e1dbc1f603988c5bf84f020d /src/liballoc/lib.rs
parent32b50e280faf56f21cbd82d1cf82cb4795535143 (diff)
parentc4cb2d1f2e74b4df4d9615b410ebc1c789c287dc (diff)
downloadrust-ba65645c78a87f1fa5c6d7132130bb3175fbe68b.tar.gz
rust-ba65645c78a87f1fa5c6d7132130bb3175fbe68b.zip
Auto merge of #44031 - scottmcm:swap_with_slice, r=alexcrichton
Add [T]::swap_with_slice

The safe version of a method from `ptr`, like `[T]::copy_from_slice` is.

Tracking issue: https://github.com/rust-lang/rust/issues/44030
Diffstat (limited to 'src/liballoc/lib.rs')
-rw-r--r--src/liballoc/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 227fcfabcf1..4e91be365e2 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -121,7 +121,7 @@
 #![feature(unsize)]
 #![feature(allocator_internals)]
 
-#![cfg_attr(not(test), feature(fused, fn_traits, placement_new_protocol))]
+#![cfg_attr(not(test), feature(fused, fn_traits, placement_new_protocol, swap_with_slice))]
 #![cfg_attr(test, feature(test, box_heap))]
 
 // Allow testing this library