diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-01-23 10:25:27 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-01-23 14:25:01 -0500 |
| commit | b7ef28c33abff6bcaf353a3958e497e15ee3268d (patch) | |
| tree | b3dd52f504f2897d99bd6d814a4386e7660cee07 /src/libcore | |
| parent | 54344c2468b95c4de5a297ddf4a5519792a34410 (diff) | |
| download | rust-b7ef28c33abff6bcaf353a3958e497e15ee3268d.tar.gz rust-b7ef28c33abff6bcaf353a3958e497e15ee3268d.zip | |
rename send_map to hashmap
This makes the module much more discoverable, and is in line with the 'treemap' naming.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/core.rc | 2 | ||||
| -rw-r--r-- | src/libcore/gc.rs | 2 | ||||
| -rw-r--r-- | src/libcore/hashmap.rs (renamed from src/libcore/send_map.rs) | 4 | ||||
| -rw-r--r-- | src/libcore/task/spawn.rs | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/libcore/core.rc b/src/libcore/core.rc index 24623f20c80..20057fa1038 100644 --- a/src/libcore/core.rc +++ b/src/libcore/core.rc @@ -138,7 +138,7 @@ pub mod dvec_iter; pub mod dlist; #[path="iter-trait.rs"] #[merge = "iter-trait/dlist.rs"] pub mod dlist_iter; -pub mod send_map; +pub mod hashmap; /* Tasks and communication */ diff --git a/src/libcore/gc.rs b/src/libcore/gc.rs index b98c79f8d0e..d27681d4630 100644 --- a/src/libcore/gc.rs +++ b/src/libcore/gc.rs @@ -44,7 +44,7 @@ use io; use libc::{size_t, uintptr_t}; use option::{None, Option, Some}; use ptr; -use send_map::linear::LinearSet; +use hashmap::linear::LinearSet; use stackwalk; use sys; diff --git a/src/libcore/send_map.rs b/src/libcore/hashmap.rs index 788c4fdbd5e..de891be0ee7 100644 --- a/src/libcore/send_map.rs +++ b/src/libcore/hashmap.rs @@ -494,8 +494,8 @@ pub mod linear { #[test] pub mod test { use option::{None, Some}; - use send_map::linear::LinearMap; - use send_map::linear; + use hashmap::linear::LinearMap; + use hashmap::linear; use uint; #[test] diff --git a/src/libcore/task/spawn.rs b/src/libcore/task/spawn.rs index 2411bd896e7..4e9a0e43b36 100644 --- a/src/libcore/task/spawn.rs +++ b/src/libcore/task/spawn.rs @@ -81,7 +81,7 @@ use pipes; use prelude::*; use private; use ptr; -use send_map; +use hashmap::linear::LinearSet; use task::local_data_priv::{local_get, local_set}; use task::rt::rust_task; use task::rt::rust_closure; @@ -96,10 +96,10 @@ macro_rules! move_it ( { $x:expr } => ( unsafe { let y = move *ptr::addr_of(&($x)); move y } ) ) -type TaskSet = send_map::linear::LinearSet<*rust_task>; +type TaskSet = LinearSet<*rust_task>; fn new_taskset() -> TaskSet { - send_map::linear::LinearSet::new() + LinearSet::new() } fn taskset_insert(tasks: &mut TaskSet, task: *rust_task) { let didnt_overwrite = tasks.insert(task); |
