Browse Source

core::ops::Place is unsafe now

pull/10/head
Fenrir 7 years ago committed by FenrirWolf
parent
commit
5c6da77fa3
  1. 2
      ctr-std/src/collections/hash/map.rs

2
ctr-std/src/collections/hash/map.rs

@ -1972,7 +1972,7 @@ impl<'a, K, V> Placer<V> for Entry<'a, K, V> { @@ -1972,7 +1972,7 @@ impl<'a, K, V> Placer<V> for Entry<'a, K, V> {
#[unstable(feature = "collection_placement",
reason = "placement protocol is subject to change",
issue = "30172")]
impl<'a, K, V> Place<V> for EntryPlace<'a, K, V> {
unsafe impl<'a, K, V> Place<V> for EntryPlace<'a, K, V> {
fn pointer(&mut self) -> *mut V {
self.bucket.read_mut().1
}

Loading…
Cancel
Save