diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-08-12 17:23:48 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-08-15 18:09:16 -0700 |
| commit | b7dcf272d90657bfea13e54939ee04fed7c7f5f0 (patch) | |
| tree | cdea478a10b63039317b56c9ce427f6fb67db182 /src/libcore/slice.rs | |
| parent | 6634777ae0a89a535d7b43cd95c227724818a260 (diff) | |
| download | rust-b7dcf272d90657bfea13e54939ee04fed7c7f5f0.tar.gz rust-b7dcf272d90657bfea13e54939ee04fed7c7f5f0.zip | |
core: Fill out issues for unstable features
Diffstat (limited to 'src/libcore/slice.rs')
| -rw-r--r-- | src/libcore/slice.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index 4019e63a9f1..e63eb9f4cf8 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -64,7 +64,8 @@ use raw::Slice as RawSlice; #[allow(missing_docs)] // docs in libcollections #[doc(hidden)] #[unstable(feature = "core_slice_ext", - reason = "stable interface provided by `impl [T]` in later crates")] + reason = "stable interface provided by `impl [T]` in later crates", + issue = "27701")] pub trait SliceExt { type Item; @@ -797,7 +798,7 @@ impl<'a, T> Iter<'a, T> { /// /// This has the same lifetime as the original slice, and so the /// iterator can continue to be used while this exists. - #[unstable(feature = "iter_to_slice")] + #[unstable(feature = "iter_to_slice", issue = "27775")] pub fn as_slice(&self) -> &'a [T] { make_slice!(self.ptr, self.end) } @@ -845,7 +846,7 @@ impl<'a, T> IterMut<'a, T> { /// to consume the iterator. Consider using the `Slice` and /// `SliceMut` implementations for obtaining slices with more /// restricted lifetimes that do not consume the iterator. - #[unstable(feature = "iter_to_slice")] + #[unstable(feature = "iter_to_slice", issue = "27775")] pub fn into_slice(self) -> &'a mut [T] { make_mut_slice!(self.ptr, self.end) } @@ -1408,7 +1409,7 @@ impl<'a, T> ExactSizeIterator for ChunksMut<'a, T> {} // /// Converts a pointer to A into a slice of length 1 (without copying). -#[unstable(feature = "ref_slice")] +#[unstable(feature = "ref_slice", issue = "27774")] pub fn ref_slice<'a, A>(s: &'a A) -> &'a [A] { unsafe { from_raw_parts(s, 1) @@ -1416,7 +1417,7 @@ pub fn ref_slice<'a, A>(s: &'a A) -> &'a [A] { } /// Converts a pointer to A into a slice of length 1 (without copying). -#[unstable(feature = "ref_slice")] +#[unstable(feature = "ref_slice", issue = "27774")] pub fn mut_ref_slice<'a, A>(s: &'a mut A) -> &'a mut [A] { unsafe { from_raw_parts_mut(s, 1) @@ -1478,7 +1479,8 @@ pub unsafe fn from_raw_parts_mut<'a, T>(p: *mut T, len: usize) -> &'a mut [T] { // /// Operations on `[u8]`. -#[unstable(feature = "slice_bytes", reason = "needs review")] +#[unstable(feature = "slice_bytes", reason = "needs review", + issue = "27740")] pub mod bytes { use ptr; use slice::SliceExt; |
