diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-24 21:08:33 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-24 21:35:35 -0700 |
| commit | c7a3d0eb5820e63225b45a2e2c8c4e9b8f658601 (patch) | |
| tree | de6df50ccb8b9ceb4b3ca31cb95df7d31bed7cbf /src/libcore | |
| parent | 0dad78e03d411a5bae4a7aa20eda93231634a095 (diff) | |
Remove one last match check, in send_map
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/send_map.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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<V> { 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(_) => { |
