From e08daaf6b46b992069aaeb63fa8bfa3b561e3c5a Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 27 May 2015 14:41:44 -0400 Subject: [PATCH] Deprecate Vec::as_{mut_,}slice Slicing syntax should be used instead. Fixes #25622 --- src/libcollections/vec.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 4d52eb8e8ae67..62a6560433391 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -441,16 +441,16 @@ impl Vec { /// Extracts a slice containing the entire vector. #[inline] - #[unstable(feature = "convert", - reason = "waiting on RFC revision")] + #[deprecated(since = "1.2", + reason = "Use slicing syntax instead: &v[..]")] pub fn as_slice(&self) -> &[T] { self } /// Deprecated: use `&mut s[..]` instead. #[inline] - #[unstable(feature = "convert", - reason = "waiting on RFC revision")] + #[deprecated(since = "1.2", + reason = "Use slicing syntax instead: &mut v[..]")] pub fn as_mut_slice(&mut self) -> &mut [T] { &mut self[..] }