From 5c6da77fa36596185596ef575cc7a3a76f52fa07 Mon Sep 17 00:00:00 2001 From: Fenrir Date: Fri, 26 Jan 2018 08:32:43 -0700 Subject: [PATCH] core::ops::Place is unsafe now --- ctr-std/src/collections/hash/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctr-std/src/collections/hash/map.rs b/ctr-std/src/collections/hash/map.rs index 4e5385c..b01420f 100644 --- a/ctr-std/src/collections/hash/map.rs +++ b/ctr-std/src/collections/hash/map.rs @@ -1972,7 +1972,7 @@ impl<'a, K, V> Placer for Entry<'a, K, V> { #[unstable(feature = "collection_placement", reason = "placement protocol is subject to change", issue = "30172")] -impl<'a, K, V> Place for EntryPlace<'a, K, V> { +unsafe impl<'a, K, V> Place for EntryPlace<'a, K, V> { fn pointer(&mut self) -> *mut V { self.bucket.read_mut().1 }