Add a tracking issue for new as_slice methods
This commit is contained in:
parent
51e0d1c299
commit
e478cadbbe
@ -2481,7 +2481,7 @@ impl<'a, T> Drain<'a, T> {
|
||||
/// let _ = drain.next().unwrap();
|
||||
/// assert_eq!(drain.as_slice(), &['b', 'c']);
|
||||
/// ```
|
||||
#[unstable(feature = "vec_drain_as_slice", reason = "recently added", issue = "0")]
|
||||
#[unstable(feature = "vec_drain_as_slice", reason = "recently added", issue = "58957")]
|
||||
pub fn as_slice(&self) -> &[T] {
|
||||
self.iter.as_slice()
|
||||
}
|
||||
|
@ -3312,7 +3312,7 @@ impl<'a, T> IterMut<'a, T> {
|
||||
/// // Now `as_slice` returns "[2, 3]":
|
||||
/// assert_eq!(iter.as_slice(), &[2, 3]);
|
||||
/// ```
|
||||
#[unstable(feature = "slice_iter_mut_as_slice", reason = "recently added", issue = "0")]
|
||||
#[unstable(feature = "slice_iter_mut_as_slice", reason = "recently added", issue = "58957")]
|
||||
pub fn as_slice(&self) -> &[T] {
|
||||
self.make_slice()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user