1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#![feature(alloc)]
#![feature(allocator_api)]
#![feature(dropck_eyepatch)]
#![feature(fused)]
#![feature(generic_param_attrs)]
#![feature(placement_new_protocol)]
#![feature(shared)]
#![feature(unique)]

#![cfg_attr(test, feature(placement_in_syntax))]
#![cfg_attr(test, feature(test))]

extern crate alloc;
extern crate rayon;

#[cfg(test)] extern crate rand;

use std::borrow;
use std::cmp;
use std::fmt;
use std::hash;
use std::iter;
use std::marker;
use std::mem;
use std::ops;
use std::ptr;

#[cfg(test)] use std::panic;
#[cfg(test)] use std::cell;

// #[stable(feature = "rust1", since = "1.0.0")]
pub use self::hash_map::HashMap;
// #[stable(feature = "rust1", since = "1.0.0")]
pub use self::hash_set::HashSet;

mod std_hash;

// #[stable(feature = "rust1", since = "1.0.0")]
pub mod hash_map {
    //! A hash map implemented with linear probing and Robin Hood bucket stealing.
    // #[stable(feature = "rust1", since = "1.0.0")]
    pub use super::std_hash::map::*;
}

// #[stable(feature = "rust1", since = "1.0.0")]
pub mod hash_set {
    //! A hash set implemented as a `HashMap` where the value is `()`.
    // #[stable(feature = "rust1", since = "1.0.0")]
    pub use super::std_hash::set::*;
}