diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-10-02 11:47:51 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-10-02 11:47:51 -0700 |
| commit | 7bf56df4c8bf40a16f2743447b7688343642f370 (patch) | |
| tree | a3854d324e66cf84cc78d1a89faff4a6265a9058 /src/libcore/slice.rs | |
| parent | 2f365ffdad40475e8f70f7af7f210d6c597b60f5 (diff) | |
| download | rust-7bf56df4c8bf40a16f2743447b7688343642f370.tar.gz rust-7bf56df4c8bf40a16f2743447b7688343642f370.zip | |
Revert "Put slicing syntax behind a feature gate."
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
Diffstat (limited to 'src/libcore/slice.rs')
| -rw-r--r-- | src/libcore/slice.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index 2ff0fd2ef00..68b3a3199df 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -814,13 +814,13 @@ impl<'a,T> MutableSlice<'a, T> for &'a mut [T] { #[inline] fn tail_mut(self) -> &'a mut [T] { let len = self.len(); - self[mut 1..len] + self.slice_mut(1, len) } #[inline] fn init_mut(self) -> &'a mut [T] { let len = self.len(); - self[mut 0..len - 1] + self.slice_mut(0, len - 1) } #[inline] |
