diff options
| author | Graydon Hoare <[email protected]> | 2010-09-09 15:59:29 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-09 15:59:29 -0700 |
| commit | a9e2327a18e782df524c14dc42910d61a4785324 (patch) | |
| tree | 8763224ac3a4c11275dd64257aac47036c97c48d /src/lib/map.rs | |
| parent | Fixed lost signal notifications. (diff) | |
| download | rust-a9e2327a18e782df524c14dc42910d61a4785324.tar.xz rust-a9e2327a18e782df524c14dc42910d61a4785324.zip | |
Switch tags to purely nominal, removing TY_iso and TY_idx. Seems to mostly work, possibly a little bumpy. Changes a lot.
Diffstat (limited to 'src/lib/map.rs')
| -rw-r--r-- | src/lib/map.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/map.rs b/src/lib/map.rs index ce4f065f..decc2216 100644 --- a/src/lib/map.rs +++ b/src/lib/map.rs @@ -27,7 +27,11 @@ fn mk_hashmap[K, V](&hashfn[K] hasher, &eqfn[K] eqer) -> hashmap[K, V] { let uint initial_capacity = 32u; // 2^5 let util.rational load_factor = rec(num=3, den=4); - type bucket[K, V] = tag(nil(), deleted(), some(K, V)); + tag bucket[K, V] { + nil(); + deleted(); + some(K, V); + } fn make_buckets[K, V](uint nbkts) -> vec[mutable bucket[K, V]] { ret _vec.init_elt[mutable bucket[K, V]](nil[K, V](), nbkts); |