aboutsummaryrefslogtreecommitdiff
path: root/src/lib/map.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-22 14:02:52 -0700
committerPatrick Walton <[email protected]>2011-03-22 14:02:52 -0700
commitbcf04e253f0cc963f0e529a0ceef2268cb7916e1 (patch)
tree74fef368a4672bf1deaacb65eaf23c159fb23bb4 /src/lib/map.rs
parentlib: Add an EBML reader module (diff)
downloadrust-bcf04e253f0cc963f0e529a0ceef2268cb7916e1.tar.xz
rust-bcf04e253f0cc963f0e529a0ceef2268cb7916e1.zip
Revert "Remove usages of case(_) { fail; } since the compiler does this automatically". When we have exhaustiveness checking, "case(_) { fail; }" will be useful to silence warnings.
This reverts commit 92a716d862d92d3cc52a400457d2c3900d0c57a2.
Diffstat (limited to 'src/lib/map.rs')
-rw-r--r--src/lib/map.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/map.rs b/src/lib/map.rs
index d8e24314..f22faaca 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] {
fn get(&K key) -> V {
alt (find_common[K, V](hasher, eqer, bkts, nbkts, key)) {
case (option.some[V](?val)) { ret val; }
+ case (_) { fail; }
}
fail; // FIXME: remove me when exhaustiveness checking works
}