diff --git a/src/libcore/send_map.rs b/src/libcore/send_map.rs index 9792b7c805b..774e87cd1e5 100644 --- a/src/libcore/send_map.rs +++ b/src/libcore/send_map.rs @@ -295,8 +295,11 @@ mod linear { fn find(&const self, k: &K) -> option { match self.bucket_for_key(self.buckets, k) { FoundEntry(idx) => { - match check self.buckets[idx] { - some(bkt) => {some(copy bkt.value)} + // FIXME (#3148): Once we rewrite found_entry, this + // failure case won't be necessary + match self.buckets[idx] { + some(bkt) => {some(copy bkt.value)} + none => fail ~"LinearMap::find: internal logic error" } } TableFull | FoundHole(_) => {