]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/collections/hash/map.rs
Rollup merge of #23738 - alexcrichton:snapshots, r=cmr
[rust.git] / src / libstd / collections / hash / map.rs
index 91225891338a58a42dc19542377103de57ff457f..06d1e69fff051cd0800a0a3da6ca4fec4cf1c42a 100644 (file)
@@ -1247,22 +1247,6 @@ fn default() -> 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>,