diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-02-06 00:03:12 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-02-06 17:37:56 -0500 |
| commit | b91a51daca705b5aebfa58079963f24592a7e411 (patch) | |
| tree | 7de1bbd38bbf1f4179e501e765ca1550c553d960 /src/libcore/hashmap.rs | |
| parent | b34f871ddac7bc84366b25c89d0a69926cb069e0 (diff) | |
| download | rust-b91a51daca705b5aebfa58079963f24592a7e411.tar.gz rust-b91a51daca705b5aebfa58079963f24592a7e411.zip | |
remove issue #3148 workarounds (no longer needed)
Diffstat (limited to 'src/libcore/hashmap.rs')
| -rw-r--r-- | src/libcore/hashmap.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libcore/hashmap.rs b/src/libcore/hashmap.rs index adb16a92905..88981f514cf 100644 --- a/src/libcore/hashmap.rs +++ b/src/libcore/hashmap.rs @@ -49,9 +49,8 @@ pub mod linear { buckets: ~[Option<Bucket<K, V>>], } - // FIXME(#3148) -- we could rewrite FoundEntry - // to have type Option<&Bucket<K, V>> which would be nifty - // However, that won't work until #3148 is fixed + // We could rewrite FoundEntry to have type Option<&Bucket<K, V>> + // which would be nifty enum SearchResult { FoundEntry(uint), FoundHole(uint), TableFull } @@ -296,8 +295,6 @@ pub mod linear { FoundEntry(idx) => { match self.buckets[idx] { Some(ref bkt) => { - // FIXME(#3148)---should be inferred - let bkt: &self/Bucket<K, V> = bkt; Some(&bkt.value) } None => { |
