Add [T]::swap_with_slice

The safe version of a method from ptr, like [T]::copy_from_slice
This commit is contained in:
Scott McMurray
2017-08-21 22:20:00 -07:00
parent 8df670b6a6
commit c4cb2d1f2e
3 changed files with 39 additions and 1 deletions

View File

@@ -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