about summary refs log tree commit diff
path: root/src/libcollectionstest
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-05-24 14:24:44 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-05-30 20:46:32 -0700
commitb64c9d56700e2c41207166fe8709711ff02488ff (patch)
tree82e982ea6a6840e3f0f4d3d82a4d2ad24771200b /src/libcollectionstest
parenta967611d8ffececb5ed0ecf6a205b464d7a5a31e (diff)
std: Clean out old unstable + deprecated APIs
These should all have been deprecated for at least one cycle, so this commit
cleans them all out.
Diffstat (limited to 'src/libcollectionstest')
-rw-r--r--src/libcollectionstest/lib.rs1
-rw-r--r--src/libcollectionstest/str.rs58
2 files changed, 0 insertions, 59 deletions
diff --git a/src/libcollectionstest/lib.rs b/src/libcollectionstest/lib.rs
index bae21f1bd9b..e9754bc98aa 100644
--- a/src/libcollectionstest/lib.rs
+++ b/src/libcollectionstest/lib.rs
@@ -25,7 +25,6 @@
 #![feature(pattern)]
 #![feature(rand)]
 #![feature(step_by)]
-#![feature(str_char)]
 #![feature(str_escape)]
 #![feature(test)]
 #![feature(unboxed_closures)]
diff --git a/src/libcollectionstest/str.rs b/src/libcollectionstest/str.rs
index a1820a1cb96..124b85bfca8 100644
--- a/src/libcollectionstest/str.rs
+++ b/src/libcollectionstest/str.rs
@@ -480,20 +480,6 @@ fn test_is_whitespace() {
 }
 
 #[test]
-#[allow(deprecated)]
-fn test_slice_shift_char() {
-    let data = "ประเทศไทย中";
-    assert_eq!(data.slice_shift_char(), Some(('ป', "ระเทศไทย中")));
-}
-
-#[test]
-#[allow(deprecated)]
-fn test_slice_shift_char_2() {
-    let empty = "";
-    assert_eq!(empty.slice_shift_char(), None);
-}
-
-#[test]
 fn test_is_utf8() {
     // deny overlong encodings
     assert!(from_utf8(&[0xc0, 0x80]).is_err());
@@ -675,30 +661,6 @@ fn test_contains_char() {
 }
 
 #[test]
-#[allow(deprecated)]
-fn test_char_at() {
-    let s = "ศไทย中华Việt Nam";
-    let v = vec!['ศ','ไ','ท','ย','中','华','V','i','ệ','t',' ','N','a','m'];
-    let mut pos = 0;
-    for ch in &v {
-        assert!(s.char_at(pos) == *ch);
-        pos += ch.to_string().len();
-    }
-}
-
-#[test]
-#[allow(deprecated)]
-fn test_char_at_reverse() {
-    let s = "ศไทย中华Việt Nam";
-    let v = vec!['ศ','ไ','ท','ย','中','华','V','i','ệ','t',' ','N','a','m'];
-    let mut pos = s.len();
-    for ch in v.iter().rev() {
-        assert!(s.char_at_reverse(pos) == *ch);
-        pos -= ch.to_string().len();
-    }
-}
-
-#[test]
 fn test_split_at() {
     let s = "ศไทย中华Việt Nam";
     for (index, _) in s.char_indices() {
@@ -765,26 +727,6 @@ fn test_total_ord() {
 }
 
 #[test]
-#[allow(deprecated)]
-fn test_char_range_at() {
-    let data = "b¢€𤭢𤭢€¢b";
-    assert_eq!('b', data.char_range_at(0).ch);
-    assert_eq!('¢', data.char_range_at(1).ch);
-    assert_eq!('€', data.char_range_at(3).ch);
-    assert_eq!('𤭢', data.char_range_at(6).ch);
-    assert_eq!('𤭢', data.char_range_at(10).ch);
-    assert_eq!('€', data.char_range_at(14).ch);
-    assert_eq!('¢', data.char_range_at(17).ch);
-    assert_eq!('b', data.char_range_at(19).ch);
-}
-
-#[test]
-#[allow(deprecated)]
-fn test_char_range_at_reverse_underflow() {
-    assert_eq!("abc".char_range_at_reverse(0).next, 0);
-}
-
-#[test]
 fn test_iterator() {
     let s = "ศไทย中华Việt Nam";
     let v = ['ศ','ไ','ท','ย','中','华','V','i','ệ','t',' ','N','a','m'];