From 820ccf4a1335dd3940118e41f72a11bd654bac99 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 22 May 2011 01:03:28 -0400 Subject: [PATCH] stdlib: Do tail calls in std::map. Remove FIXMEs --- src/lib/map.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/map.rs b/src/lib/map.rs index a9b015cf39c1..eb398f02641f 100644 --- a/src/lib/map.rs +++ b/src/lib/map.rs @@ -180,9 +180,7 @@ fn mk_hashmap[K, V](&hashfn[K] hasher, &eqfn[K] eqer) -> hashmap[K, V] { } fn find(&K key) -> option::t[V] { - // FIXME: should be 'be' but parametric tail-calls don't - // work at the moment. - ret find_common[K, V](hasher, eqer, bkts, nbkts, key); + be find_common[K, V](hasher, eqer, bkts, nbkts, key); } fn remove(&K key) -> option::t[V] {