aboutsummaryrefslogtreecommitdiff
path: root/src/lib/map.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-10-18 16:04:47 -0700
committerGraydon Hoare <[email protected]>2010-10-18 16:04:47 -0700
commit23a00fd09211e83be2c21ca944f5f6c11b6c665b (patch)
tree69341bcc8972abf169de0edf66e499f64836d6ee /src/lib/map.rs
parentRewrite session formatting to use #fmt extension. (diff)
downloadrust-23a00fd09211e83be2c21ca944f5f6c11b6c665b.tar.xz
rust-23a00fd09211e83be2c21ca944f5f6c11b6c665b.zip
Disable use of parametric tail call in map.rs, they don't presently work.
Diffstat (limited to 'src/lib/map.rs')
-rw-r--r--src/lib/map.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/map.rs b/src/lib/map.rs
index cdc2d025..0b897697 100644
--- a/src/lib/map.rs
+++ b/src/lib/map.rs
@@ -186,7 +186,9 @@ fn mk_hashmap[K, V](&hashfn[K] hasher, &eqfn[K] eqer) -> hashmap[K, V] {
}
fn find(&K key) -> util.option[V] {
- be find_common[K, V](hasher, eqer, bkts, nbkts, key);
+ // FIXME: should be 'be' but parametric tail-calls don't
+ // work at the moment.
+ ret find_common[K, V](hasher, eqer, bkts, nbkts, key);
}
fn remove(&K key) -> util.option[V] {