about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-08-22 15:17:20 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-08-22 15:24:33 -0700
commit73ffc7e7005142c5a2d898fcb2aa39018efe07fb (patch)
tree590394c9a118265c3f36eab07949e7e68718b7ba /src
parent6f77fcbd0792f01f2b4fe91db8eca79f07a4bee0 (diff)
downloadrust-73ffc7e7005142c5a2d898fcb2aa39018efe07fb.tar.gz
rust-73ffc7e7005142c5a2d898fcb2aa39018efe07fb.zip
Remove match check in send_map
Diffstat (limited to 'src')
-rw-r--r--src/libcore/send_map.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcore/send_map.rs b/src/libcore/send_map.rs
index ea440899fe7..6d5605a240f 100644
--- a/src/libcore/send_map.rs
+++ b/src/libcore/send_map.rs
@@ -258,8 +258,11 @@ mod linear {
         fn find(k: &K) -> option<V> {
             match self.bucket_for_key(self.buckets, k) {
               FoundEntry(idx) => {
-                match check self.buckets[idx] {
+                match self.buckets[idx] {
                   some(bkt) => {some(copy bkt.value)}
+                  // FIXME (#3148): Will be able to get rid of this when we
+                  // redefine SearchResult
+                  none      => fail ~"LinearMap::find: internal logic error"
                 }
               }
               TableFull | FoundHole(_) => {