]>
Commit | Line | Data |
---|---|---|
c34b1796 AL |
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. | |
4 | // | |
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. | |
10 | ||
7453a54e SL |
11 | #![deny(warnings)] |
12 | ||
c1a9b12d | 13 | #![feature(ascii)] |
e9174d1e | 14 | #![feature(binary_heap_extras)] |
c34b1796 | 15 | #![feature(box_syntax)] |
62682a34 | 16 | #![feature(btree_range)] |
c34b1796 | 17 | #![feature(collections)] |
62682a34 | 18 | #![feature(collections_bound)] |
7453a54e | 19 | #![feature(copy_from_slice)] |
62682a34 | 20 | #![feature(const_fn)] |
92a42be0 | 21 | #![feature(fn_traits)] |
62682a34 | 22 | #![feature(enumset)] |
62682a34 | 23 | #![feature(iter_arith)] |
62682a34 | 24 | #![feature(pattern)] |
c34b1796 AL |
25 | #![feature(rand)] |
26 | #![feature(rustc_private)] | |
e9174d1e | 27 | #![feature(set_recovery)] |
62682a34 | 28 | #![feature(slice_bytes)] |
62682a34 SL |
29 | #![feature(step_by)] |
30 | #![feature(str_char)] | |
31 | #![feature(str_escape)] | |
c34b1796 AL |
32 | #![feature(test)] |
33 | #![feature(unboxed_closures)] | |
34 | #![feature(unicode)] | |
c1a9b12d | 35 | |
c34b1796 AL |
36 | #[macro_use] extern crate log; |
37 | ||
38 | extern crate collections; | |
39 | extern crate test; | |
d9579d0f | 40 | extern crate rustc_unicode; |
c34b1796 | 41 | |
e9174d1e SL |
42 | use std::hash::{Hash, Hasher, SipHasher}; |
43 | ||
c34b1796 AL |
44 | #[cfg(test)] #[macro_use] mod bench; |
45 | ||
46 | mod binary_heap; | |
c34b1796 AL |
47 | mod btree; |
48 | mod enum_set; | |
49 | mod fmt; | |
50 | mod linked_list; | |
51 | mod slice; | |
52 | mod str; | |
53 | mod string; | |
54 | mod vec_deque; | |
c34b1796 | 55 | mod vec; |
e9174d1e SL |
56 | |
57 | fn hash<T: Hash>(t: &T) -> u64 { | |
58 | let mut s = SipHasher::new(); | |
59 | t.hash(&mut s); | |
60 | s.finish() | |
61 | } |