diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-10 13:45:08 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-10 13:45:08 -0700 |
| commit | 0ad874111ef093e95e5f89862902bdd51c54a878 (patch) | |
| tree | d5cce1aad9da362737832a75fb5c901666a6a09e | |
| parent | 698c1008d6009fc6cf5a4e797cef62b52f7d1e75 (diff) | |
| download | rust-0ad874111ef093e95e5f89862902bdd51c54a878.tar.gz rust-0ad874111ef093e95e5f89862902bdd51c54a878.zip | |
std: Stabilize slice::from_raw_parts
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.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index 1f58d775354..09b88325751 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 }) } |
