diff options
| author | Thayne McCombs <astrothayne@gmail.com> | 2018-05-28 20:19:39 -0600 |
|---|---|---|
| committer | Thayne McCombs <astrothayne@gmail.com> | 2018-06-01 00:04:26 -0600 |
| commit | 9d770e9959ed5fedad31bfc04f946f5e268cfc37 (patch) | |
| tree | 0fd729827ece8163074eb37291992156b54f7547 /src/liballoc | |
| parent | 63cd4a39ead1bdcc6f4df5f11d187916bd8d3ea7 (diff) | |
| download | rust-9d770e9959ed5fedad31bfc04f946f5e268cfc37.tar.gz rust-9d770e9959ed5fedad31bfc04f946f5e268cfc37.zip | |
Stabilize SliceIndex trait.
Fixes #35729 According to recommendations in https://github.com/rust-lang/rust/issues/35729#issuecomment-377784884
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/lib.rs | 1 | ||||
| -rw-r--r-- | src/liballoc/slice.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index 91de3ad0c39..a56420d52d0 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -104,7 +104,6 @@ #![feature(ptr_internals)] #![feature(ptr_offset_from)] #![feature(rustc_attrs)] -#![feature(slice_get_slice)] #![feature(specialization)] #![feature(staged_api)] #![feature(str_internals)] diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs index 161493f3892..8686ecd7bcf 100644 --- a/src/liballoc/slice.rs +++ b/src/liballoc/slice.rs @@ -121,7 +121,7 @@ pub use core::slice::{RSplit, RSplitMut}; pub use core::slice::{from_raw_parts, from_raw_parts_mut}; #[stable(feature = "from_ref", since = "1.28.0")] pub use core::slice::{from_ref, from_mut}; -#[unstable(feature = "slice_get_slice", issue = "35729")] +#[stable(feature = "slice_get_slice", since = "1.28.0")] pub use core::slice::SliceIndex; #[unstable(feature = "exact_chunks", issue = "47115")] pub use core::slice::{ExactChunks, ExactChunksMut}; |
