diff options
Diffstat (limited to 'src/libcollections/string.rs')
| -rw-r--r-- | src/libcollections/string.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 4cb7b05f967..d0b89cfa2c3 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -877,16 +877,6 @@ impl ops::Index<ops::RangeFrom<uint>> for String { &self[][*index] } } -#[cfg(stage0)] -#[stable(feature = "rust1", since = "1.0.0")] -impl ops::Index<ops::FullRange> for String { - type Output = str; - #[inline] - fn index(&self, _index: &ops::FullRange) -> &str { - unsafe { mem::transmute(self.vec.as_slice()) } - } -} -#[cfg(not(stage0))] #[stable(feature = "rust1", since = "1.0.0")] impl ops::Index<ops::RangeFull> for String { type Output = str; @@ -1011,8 +1001,6 @@ mod tests { use str::Utf8Error; use core::iter::repeat; use super::{as_string, CowString}; - #[cfg(stage0)] - use core::ops::FullRange; #[test] fn test_as_string() { |
