diff options
| author | Fenrir <[email protected]> | 2018-01-26 08:32:43 -0700 |
|---|---|---|
| committer | FenrirWolf <[email protected]> | 2018-01-26 08:44:13 -0700 |
| commit | 5c6da77fa36596185596ef575cc7a3a76f52fa07 (patch) | |
| tree | cd89d015781c456f543d43cd538f7c58a027c333 | |
| parent | Increase reader count + style fixes (diff) | |
| download | ctru-rs-5c6da77fa36596185596ef575cc7a3a76f52fa07.tar.xz ctru-rs-5c6da77fa36596185596ef575cc7a3a76f52fa07.zip | |
core::ops::Place is unsafe now
| -rw-r--r-- | ctr-std/src/collections/hash/map.rs | 2 |
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 } |