Skip to content

Commit 165b665

Browse files
committed
Rollup merge of rust-lang#23263 - alexcrichton:stabilize-from-raw-parts, r=brson
These new APIs have had some time to bake now, and no pressing issues have come up so they should be ok for stabilizing. Specifically, these two APIs were stabilized: * `slice::from_raw_parts` * `slice::from_raw_parts_mut`
2 parents 9d775a8 + 0ad8741 commit 165b665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/slice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ pub fn mut_ref_slice<'a, A>(s: &'a mut A) -> &'a mut [A] {
14461446
/// }
14471447
/// ```
14481448
#[inline]
1449-
#[unstable(feature = "core")]
1449+
#[stable(feature = "rust1", since = "1.0.0")]
14501450
pub unsafe fn from_raw_parts<'a, T>(p: *const T, len: usize) -> &'a [T] {
14511451
transmute(RawSlice { data: p, len: len })
14521452
}
@@ -1458,7 +1458,7 @@ pub unsafe fn from_raw_parts<'a, T>(p: *const T, len: usize) -> &'a [T] {
14581458
/// as not being able to provide a non-aliasing guarantee of the returned
14591459
/// mutable slice.
14601460
#[inline]
1461-
#[unstable(feature = "core")]
1461+
#[stable(feature = "rust1", since = "1.0.0")]
14621462
pub unsafe fn from_raw_parts_mut<'a, T>(p: *mut T, len: usize) -> &'a mut [T] {
14631463
transmute(RawSlice { data: p, len: len })
14641464
}

0 commit comments

Comments
 (0)