auto merge of #15257 : erickt/rust/hashmap, r=alexcrichton
While `HashMap::new` and `HashMap::with_capacity` were being initialized with a random `SipHasher`, it turns out that `HashMap::from_iter` was just using the default instance of `SipHasher`, which wasn't randomized. This closes that bug, and also inlines some important methods.
This commit is contained in:
commit
7c4d8e94ba
3 changed files with 121 additions and 16 deletions
|
@ -167,7 +167,6 @@ pub use core::option;
|
|||
pub use alloc::owned;
|
||||
pub use alloc::rc;
|
||||
|
||||
pub use core_collections::hash;
|
||||
pub use core_collections::slice;
|
||||
pub use core_collections::str;
|
||||
pub use core_collections::string;
|
||||
|
@ -237,6 +236,7 @@ pub mod to_str;
|
|||
/* Common data structures */
|
||||
|
||||
pub mod collections;
|
||||
pub mod hash;
|
||||
|
||||
/* Tasks and communication */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue