1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
12 #![feature(binary_heap_extras)]
13 #![feature(box_syntax)]
14 #![feature(btree_range)]
15 #![feature(collections)]
16 #![feature(collections_bound)]
19 #![feature(deque_extras)]
23 #![feature(iter_arith)]
26 #![feature(range_inclusive)]
27 #![feature(rustc_private)]
28 #![feature(set_recovery)]
29 #![feature(slice_bytes)]
30 #![feature(slice_splits)]
33 #![feature(str_escape)]
34 #![feature(str_match_indices)]
35 #![feature(str_utf16)]
37 #![feature(unboxed_closures)]
39 #![feature(vec_push_all)]
41 #[macro_use] extern crate log;
43 extern crate collections;
45 extern crate rustc_unicode;
47 use std::hash::{Hash, Hasher, SipHasher};
49 #[cfg(test)] #[macro_use] mod bench;
62 fn hash<T: Hash>(t: &T) -> u64 {
63 let mut s = SipHasher::new();