aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFenrir <[email protected]>2018-01-26 08:32:43 -0700
committerFenrirWolf <[email protected]>2018-01-26 08:44:13 -0700
commit5c6da77fa36596185596ef575cc7a3a76f52fa07 (patch)
treecd89d015781c456f543d43cd538f7c58a027c333
parentIncrease reader count + style fixes (diff)
downloadctru-rs-5c6da77fa36596185596ef575cc7a3a76f52fa07.tar.xz
ctru-rs-5c6da77fa36596185596ef575cc7a3a76f52fa07.zip
core::ops::Place is unsafe now
-rw-r--r--ctr-std/src/collections/hash/map.rs2
1 files changed, 1 insertions, 1 deletions
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<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
}