diff options
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/hashmap.rs | 13 | ||||
| -rw-r--r-- | src/libcore/os.rs | 20 | ||||
| -rw-r--r-- | src/libcore/str.rs | 1 | ||||
| -rw-r--r-- | src/libcore/vec.rs | 3 |
4 files changed, 19 insertions, 18 deletions
diff --git a/src/libcore/hashmap.rs b/src/libcore/hashmap.rs index 07c7780898f..c2a39cfdcc3 100644 --- a/src/libcore/hashmap.rs +++ b/src/libcore/hashmap.rs @@ -10,14 +10,12 @@ //! Sendable hash maps. -use container::{Container, Mutable, Map, Set}; -use cmp::Eq; -use hash::Hash; -use to_bytes::IterBytes; - /// Open addressing with linear probing. pub mod linear { - use super::*; + use container::{Container, Mutable, Map, Set}; + use cmp::Eq; + use hash::Hash; + use to_bytes::IterBytes; use iter::BaseIter; use hash::Hash; use iter; @@ -752,7 +750,8 @@ mod test_map { #[test] mod test_set { - use super::*; + use hashmap::linear; + use container::{Container, Mutable, Map, Set}; use vec; #[test] diff --git a/src/libcore/os.rs b/src/libcore/os.rs index 2522e9c2cda..8b6d27496d9 100644 --- a/src/libcore/os.rs +++ b/src/libcore/os.rs @@ -1021,10 +1021,10 @@ extern { pub mod consts { #[cfg(unix)] - use os::consts::unix::*; + pub use os::consts::unix::*; #[cfg(windows)] - use os::consts::windows::*; + pub use os::consts::windows::*; pub mod unix { pub const FAMILY: &str = "unix"; @@ -1035,19 +1035,19 @@ pub mod consts { } #[cfg(target_os = "macos")] - use os::consts::macos::*; + pub use os::consts::macos::*; #[cfg(target_os = "freebsd")] - use os::consts::freebsd::*; + pub use os::consts::freebsd::*; #[cfg(target_os = "linux")] - use os::consts::linux::*; + pub use os::consts::linux::*; #[cfg(target_os = "android")] - use os::consts::android::*; + pub use os::consts::android::*; #[cfg(target_os = "win32")] - use os::consts::win32::*; + pub use os::consts::win32::*; pub mod macos { pub const SYSNAME: &str = "macos"; @@ -1086,13 +1086,13 @@ pub mod consts { #[cfg(target_arch = "x86")] - use os::consts::x86::*; + pub use os::consts::x86::*; #[cfg(target_arch = "x86_64")] - use os::consts::x86_64::*; + pub use os::consts::x86_64::*; #[cfg(target_arch = "arm")] - use os::consts::arm::*; + pub use os::consts::arm::*; pub mod x86 { pub const ARCH: &str = "x86"; diff --git a/src/libcore/str.rs b/src/libcore/str.rs index 66be5481819..6ee6d282841 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -2375,6 +2375,7 @@ impl OwnedStr for ~str { #[cfg(test)] mod tests { use char; + use option::Some; use debug; use libc::c_char; use libc; diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 687ad2f7938..4d28c769b18 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1444,7 +1444,7 @@ pub fn each2<U, T>(v1: &[U], v2: &[T], f: fn(u: &U, t: &T) -> bool) { * The total number of permutations produced is `len(v)!`. If `v` contains * repeated elements, then some permutations are repeated. */ -pure fn each_permutation<T:Copy>(v: &[T], put: fn(ts: &[T]) -> bool) { +pub pure fn each_permutation<T:Copy>(v: &[T], put: fn(ts: &[T]) -> bool) { let ln = len(v); if ln <= 1 { put(v); @@ -2427,6 +2427,7 @@ impl<A:Copy> iter::CopyableNonstrictIter<A> for @[A] { mod tests { use option::{None, Option, Some}; use option; + use sys; use vec::*; fn square(n: uint) -> uint { return n * n; } |
