stabilize swap_nonoverlapping
feature
This commit is contained in:
parent
edc412c5a9
commit
41c211d204
1 changed files with 1 additions and 3 deletions
|
@ -166,8 +166,6 @@ pub unsafe fn swap<T>(x: *mut T, y: *mut T) {
|
|||
/// Basic usage:
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(swap_nonoverlapping)]
|
||||
///
|
||||
/// use std::ptr;
|
||||
///
|
||||
/// let mut x = [1, 2, 3, 4];
|
||||
|
@ -181,7 +179,7 @@ pub unsafe fn swap<T>(x: *mut T, y: *mut T) {
|
|||
/// assert_eq!(y, [1, 2, 9]);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[unstable(feature = "swap_nonoverlapping", issue = "42818")]
|
||||
#[stable(feature = "swap_nonoverlapping", since = "1.27.0")]
|
||||
pub unsafe fn swap_nonoverlapping<T>(x: *mut T, y: *mut T, count: usize) {
|
||||
let x = x as *mut u8;
|
||||
let y = y as *mut u8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue