about summary refs log tree commit diff
path: root/src/libstd/collections
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-27 22:37:12 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-27 22:37:12 +0530
commit82b375b44d408e7ddd1e3b2c1e64b0bf0c4376d1 (patch)
tree21a5333e58e0434e9310251d1bdbc9429ecfa7bf /src/libstd/collections
parent242ed0b7c0f6a21096f2cc3e1ad1bdb176d02545 (diff)
parent36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157 (diff)
downloadrust-82b375b44d408e7ddd1e3b2c1e64b0bf0c4376d1.tar.gz
rust-82b375b44d408e7ddd1e3b2c1e64b0bf0c4376d1.zip
Rollup merge of #23738 - alexcrichton:snapshots, r=cmr
Diffstat (limited to 'src/libstd/collections')
-rw-r--r--src/libstd/collections/hash/map.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index 91225891338..06d1e69fff0 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -1247,22 +1247,6 @@ impl<K, V, S> Default for HashMap<K, V, S>
     }
 }
 
-#[cfg(stage0)]
-#[stable(feature = "rust1", since = "1.0.0")]
-impl<K, Q: ?Sized, V, S> Index<Q> for HashMap<K, V, S>
-    where K: Eq + Hash + Borrow<Q>,
-          Q: Eq + Hash,
-          S: HashState,
-{
-    type Output = V;
-
-    #[inline]
-    fn index<'a>(&'a self, index: &Q) -> &'a V {
-        self.get(index).expect("no entry found for key")
-    }
-}
-
-#[cfg(not(stage0))]
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<'a, K, Q: ?Sized, V, S> Index<&'a Q> for HashMap<K, V, S>
     where K: Eq + Hash + Borrow<Q>,