From 228846b6e31e8a942100b4fe00cf6a242bbae47f Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 14 Aug 2019 21:37:48 +0200 Subject: [PATCH] Add HashMap to the prelude --- src/libstd/prelude/v1.rs | 3 +++ src/libtest/lib.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libstd/prelude/v1.rs b/src/libstd/prelude/v1.rs index 1c61f21f7df4e..6cfa20e2edc30 100644 --- a/src/libstd/prelude/v1.rs +++ b/src/libstd/prelude/v1.rs @@ -119,6 +119,9 @@ pub use crate::boxed::Box; pub use crate::borrow::ToOwned; #[stable(feature = "rust1", since = "1.0.0")] #[doc(no_inline)] +pub use crate::collections::HashMap; +#[stable(feature = "rust1", since = "1.0.0")] +#[doc(no_inline)] pub use crate::string::{String, ToString}; #[stable(feature = "rust1", since = "1.0.0")] #[doc(no_inline)] diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index ef66c4df99da7..d764ca25bba1a 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -1020,7 +1020,7 @@ pub fn run_tests(opts: &TestOpts, tests: Vec, mut callback: F) where F: FnMut(TestEvent) -> io::Result<()>, { - use std::collections::{self, HashMap}; + use std::collections; use std::hash::BuildHasherDefault; use std::sync::mpsc::RecvTimeoutError; // Use a deterministic hasher