]> git.lizzy.rs Git - rust.git/blobdiff - src/libcollections/btree/map.rs
Rollup merge of #23738 - alexcrichton:snapshots, r=cmr
[rust.git] / src / libcollections / btree / map.rs
index 04a692cc3aea2b59d63675bb648ddcd900418d4b..11407b5e496f68dffd9c57b870e18d3fce3e8b46 100644 (file)
@@ -915,20 +915,6 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
     }
 }
 
-#[cfg(stage0)]
-#[stable(feature = "rust1", since = "1.0.0")]
-impl<K: Ord, Q: ?Sized, V> Index<Q> for BTreeMap<K, V>
-    where K: Borrow<Q>, Q: Ord
-{
-    type Output = V;
-
-    #[inline]
-    fn index(&self, key: &Q) -> &V {
-        self.get(key).expect("no entry found for key")
-    }
-}
-
-#[cfg(not(stage0))]
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<'a, K: Ord, Q: ?Sized, V> Index<&'a Q> for BTreeMap<K, V>
     where K: Borrow<Q>, Q: Ord