diff options
| author | Taylor Cramer <cramertj@google.com> | 2018-01-09 11:39:23 -0800 |
|---|---|---|
| committer | Taylor Cramer <cramertj@google.com> | 2018-01-09 11:39:23 -0800 |
| commit | 25574e58b68dae94f7d9931b5e648a327a94ecd1 (patch) | |
| tree | 0679be6100cb262046d813cd2624e01a43f464fe /src/libstd | |
| parent | 8e7a609e635b728eba65d471c985ab462dc4cfc7 (diff) | |
| download | rust-25574e58b68dae94f7d9931b5e648a327a94ecd1.tar.gz rust-25574e58b68dae94f7d9931b5e648a327a94ecd1.zip | |
Make core::ops::Place an unsafe trait
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 7a79a472d58..595b01ff77c 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -1932,7 +1932,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 } |
