From c14aa7eba88a3d0a26513dbb2a3acdcdcfc5072d Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Tue, 30 Apr 2013 13:02:29 +0200 Subject: [PATCH] mod items need to be marked with `cfg(test)` not `test`. --- src/libcore/hashmap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/hashmap.rs b/src/libcore/hashmap.rs index 41f4f34dc197..9b82a8dad059 100644 --- a/src/libcore/hashmap.rs +++ b/src/libcore/hashmap.rs @@ -833,7 +833,7 @@ pub impl HashSet { } } -#[test] +#[cfg(test)] mod test_map { use container::{Container, Map, Set}; use option::{None, Some}; @@ -1009,7 +1009,7 @@ mod test_map { } } -#[test] +#[cfg(test)] mod test_set { use super::*; use container::{Container, Map, Set};