about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-12 09:14:26 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-12 09:14:26 +0530
commit6290a344a6088598be2685f01ba613656e435b1f (patch)
treea206ee2f8a4fa6ed91484de8cb5a9fcfccefe6dd
parent34d87b29f060d2118a05a95948415bef0e74738e (diff)
parent0ad874111ef093e95e5f89862902bdd51c54a878 (diff)
downloadrust-6290a344a6088598be2685f01ba613656e435b1f.tar.gz
rust-6290a344a6088598be2685f01ba613656e435b1f.zip
Rollup merge of #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`
-rw-r--r--src/libcore/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index a8282e5701e..07c14d08c07 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -1446,7 +1446,7 @@ pub fn mut_ref_slice<'a, A>(s: &'a mut A) -> &'a mut [A] {
 /// }
 /// ```
 #[inline]
-#[unstable(feature = "core")]
+#[stable(feature = "rust1", since = "1.0.0")]
 pub unsafe fn from_raw_parts<'a, T>(p: *const T, len: usize) -> &'a [T] {
     transmute(RawSlice { data: p, len: len })
 }
@@ -1458,7 +1458,7 @@ pub unsafe fn from_raw_parts<'a, T>(p: *const T, len: usize) -> &'a [T] {
 /// as not being able to provide a non-aliasing guarantee of the returned
 /// mutable slice.
 #[inline]
-#[unstable(feature = "core")]
+#[stable(feature = "rust1", since = "1.0.0")]
 pub unsafe fn from_raw_parts_mut<'a, T>(p: *mut T, len: usize) -> &'a mut [T] {
     transmute(RawSlice { data: p, len: len })
 }