diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-27 10:07:44 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-27 10:07:44 -0700 |
| commit | 4bd15522968c467d41fd843534b10a02ba44ccea (patch) | |
| tree | af1abb9e16df8b27e903fcb268150df67da631a9 /src/libcore | |
| parent | 8eb918e9701f927fde42d0f2ea0ab4438bbd6c79 (diff) | |
| parent | c5b876375312410c6e0df6e72155c8d0fac62c2c (diff) | |
| download | rust-4bd15522968c467d41fd843534b10a02ba44ccea.tar.gz rust-4bd15522968c467d41fd843534b10a02ba44ccea.zip | |
rollup merge of #23721: erickt/deprecate
This is technically a breaking change as it deprecates and unstables some previously stable apis that were missed in the last round of deprecations. [breaking change]
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/slice.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index fce29abed73..892660b98bc 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -88,6 +88,9 @@ pub trait SliceExt { fn len(&self) -> usize; fn is_empty(&self) -> bool { self.len() == 0 } fn get_mut<'a>(&'a mut self, index: usize) -> Option<&'a mut Self::Item>; + #[unstable(feature = "core", + reason = "will be replaced by slice syntax")] + #[deprecated(since = "1.0.0", reason = "use &mut s[..] instead")] fn as_mut_slice<'a>(&'a mut self) -> &'a mut [Self::Item]; fn iter_mut<'a>(&'a mut self) -> IterMut<'a, Self::Item>; fn first_mut<'a>(&'a mut self) -> Option<&'a mut Self::Item>; @@ -261,6 +264,9 @@ impl<T> SliceExt for [T] { } #[inline] + #[unstable(feature = "core", + reason = "will be replaced by slice syntax")] + #[deprecated(since = "1.0.0", reason = "use &mut s[..] instead")] fn as_mut_slice(&mut self) -> &mut [T] { self } #[cfg(stage0)] |
