Skip to content

Commit 41c211d

Browse files
committed
stabilize swap_nonoverlapping feature
1 parent edc412c commit 41c211d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libcore/ptr.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ pub unsafe fn swap<T>(x: *mut T, y: *mut T) {
166166
/// Basic usage:
167167
///
168168
/// ```
169-
/// #![feature(swap_nonoverlapping)]
170-
///
171169
/// use std::ptr;
172170
///
173171
/// let mut x = [1, 2, 3, 4];
@@ -181,7 +179,7 @@ pub unsafe fn swap<T>(x: *mut T, y: *mut T) {
181179
/// assert_eq!(y, [1, 2, 9]);
182180
/// ```
183181
#[inline]
184-
#[unstable(feature = "swap_nonoverlapping", issue = "42818")]
182+
#[stable(feature = "swap_nonoverlapping", since = "1.27.0")]
185183
pub unsafe fn swap_nonoverlapping<T>(x: *mut T, y: *mut T, count: usize) {
186184
let x = x as *mut u8;
187185
let y = y as *mut u8;

0 commit comments

Comments
 (0)