about summary refs log tree commit diff
path: root/src/libcore/hashmap.rs
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-02-06 00:03:12 -0500
committerDaniel Micay <danielmicay@gmail.com>2013-02-06 17:37:56 -0500
commitb91a51daca705b5aebfa58079963f24592a7e411 (patch)
tree7de1bbd38bbf1f4179e501e765ca1550c553d960 /src/libcore/hashmap.rs
parentb34f871ddac7bc84366b25c89d0a69926cb069e0 (diff)
downloadrust-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.rs7
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 => {