From c4cb2d1f2e74b4df4d9615b410ebc1c789c287dc Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Mon, 21 Aug 2017 22:20:00 -0700 Subject: Add [T]::swap_with_slice The safe version of a method from ptr, like [T]::copy_from_slice --- src/liballoc/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liballoc/lib.rs') 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 -- cgit 1.4.1-3-g733a5