about summary refs log tree commit diff
path: root/src/libcollectionstest/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcollectionstest/lib.rs')
-rw-r--r--src/libcollectionstest/lib.rs27
1 files changed, 8 insertions, 19 deletions
diff --git a/src/libcollectionstest/lib.rs b/src/libcollectionstest/lib.rs
index d161dc7a287..ca96f27d80d 100644
--- a/src/libcollectionstest/lib.rs
+++ b/src/libcollectionstest/lib.rs
@@ -10,8 +10,6 @@
 
 #![feature(ascii)]
 #![feature(append)]
-#![feature(bitset)]
-#![feature(bitvec)]
 #![feature(box_syntax)]
 #![feature(btree_range)]
 #![feature(collections)]
@@ -21,24 +19,14 @@
 #![feature(deque_extras)]
 #![feature(drain)]
 #![feature(enumset)]
-#![feature(hash_default)]
 #![feature(into_cow)]
-#![feature(iter_idx)]
-#![feature(iter_order)]
 #![feature(iter_arith)]
-#![feature(iter_to_vec)]
-#![feature(map_in_place)]
-#![feature(move_from)]
-#![feature(num_bits_bytes)]
 #![feature(pattern)]
-#![feature(permutations)]
 #![feature(rand)]
 #![feature(range_inclusive)]
 #![feature(rustc_private)]
 #![feature(slice_bytes)]
-#![feature(slice_chars)]
 #![feature(slice_splits)]
-#![feature(slice_position_elem)]
 #![feature(split_off)]
 #![feature(step_by)]
 #![feature(str_char)]
@@ -47,16 +35,11 @@
 #![feature(str_split_at)]
 #![feature(str_utf16)]
 #![feature(box_str)]
-#![feature(subslice_offset)]
 #![feature(test)]
 #![feature(unboxed_closures)]
 #![feature(unicode)]
 #![feature(vec_deque_retain)]
-#![feature(vec_from_raw_buf)]
 #![feature(vec_push_all)]
-#![feature(vecmap)]
-
-#![allow(deprecated)]
 
 #[macro_use] extern crate log;
 
@@ -64,10 +47,11 @@ extern crate collections;
 extern crate test;
 extern crate rustc_unicode;
 
+use std::hash::{Hash, Hasher, SipHasher};
+
 #[cfg(test)] #[macro_use] mod bench;
 
 mod binary_heap;
-mod bit;
 mod btree;
 mod enum_set;
 mod fmt;
@@ -76,5 +60,10 @@ mod slice;
 mod str;
 mod string;
 mod vec_deque;
-mod vec_map;
 mod vec;
+
+fn hash<T: Hash>(t: &T) -> u64 {
+    let mut s = SipHasher::new();
+    t.hash(&mut s);
+    s.finish()
+}