about summary refs log tree commit diff
path: root/src/libcollectionstest/string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcollectionstest/string.rs')
-rw-r--r--src/libcollectionstest/string.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libcollectionstest/string.rs b/src/libcollectionstest/string.rs
index 7b69601f010..80283741ccc 100644
--- a/src/libcollectionstest/string.rs
+++ b/src/libcollectionstest/string.rs
@@ -10,19 +10,10 @@
 
 use std::borrow::{IntoCow, Cow};
 use std::iter::repeat;
-#[allow(deprecated)]
-use std::string::as_string;
 
 use test::Bencher;
 
 #[test]
-#[allow(deprecated)]
-fn test_as_string() {
-    let x = "foo";
-    assert_eq!(x, &**as_string(x));
-}
-
-#[test]
 fn test_from_str() {
   let owned: Option<::std::string::String> = "string".parse().ok();
   assert_eq!(owned.as_ref().map(|s| &**s), Some("string"));