aboutsummaryrefslogtreecommitdiff
path: root/src/lib/map.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-11-18 14:17:17 -0800
committerPatrick Walton <[email protected]>2010-11-18 14:19:06 -0800
commit77ff12c435aeb6181ee2678a526b6f6ea3831938 (patch)
tree499fd7149a5fc2a9f0f8c9201b4e2e21c4231f26 /src/lib/map.rs
parentUpdate frame logic to be compatible with SysV x86 ABI. Improves diagnostics. (diff)
downloadrust-77ff12c435aeb6181ee2678a526b6f6ea3831938.tar.xz
rust-77ff12c435aeb6181ee2678a526b6f6ea3831938.zip
rustboot: Don't use walk to traverse statements in type.ml; fixes redundant checking, improves diagnostics. Also report untyped slots.
Diffstat (limited to 'src/lib/map.rs')
-rw-r--r--src/lib/map.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/map.rs b/src/lib/map.rs
index b20fd9c5..7f760b65 100644
--- a/src/lib/map.rs
+++ b/src/lib/map.rs
@@ -176,6 +176,7 @@ fn mk_hashmap[K, V](&hashfn[K] hasher, &eqfn[K] eqer) -> hashmap[K, V] {
case (option.some[V](_)) { ret true; }
case (_) { ret false; }
}
+ fail; // FIXME: remove me when exhaustiveness checking works
}
fn get(&K key) -> V {
@@ -183,6 +184,7 @@ fn mk_hashmap[K, V](&hashfn[K] hasher, &eqfn[K] eqer) -> hashmap[K, V] {
case (option.some[V](?val)) { ret val; }
case (_) { fail; }
}
+ fail; // FIXME: remove me when exhaustiveness checking works
}
fn find(&K key) -> option.t[V] {