We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
swap_nonoverlapping
1 parent edc412c commit 41c211dCopy full SHA for 41c211d
src/libcore/ptr.rs
@@ -166,8 +166,6 @@ pub unsafe fn swap<T>(x: *mut T, y: *mut T) {
166
/// Basic usage:
167
///
168
/// ```
169
-/// #![feature(swap_nonoverlapping)]
170
-///
171
/// use std::ptr;
172
173
/// let mut x = [1, 2, 3, 4];
@@ -181,7 +179,7 @@ pub unsafe fn swap<T>(x: *mut T, y: *mut T) {
181
179
/// assert_eq!(y, [1, 2, 9]);
182
180
183
#[inline]
184
-#[unstable(feature = "swap_nonoverlapping", issue = "42818")]
+#[stable(feature = "swap_nonoverlapping", since = "1.27.0")]
185
pub unsafe fn swap_nonoverlapping<T>(x: *mut T, y: *mut T, count: usize) {
186
let x = x as *mut u8;
187
let y = y as *mut u8;
0 commit comments