about summary refs log tree commit diff
path: root/src/liballoc/binary_heap.rs
diff options
context:
space:
mode:
authorTaylor Cramer <cramertj@google.com>2018-01-09 11:39:23 -0800
committerTaylor Cramer <cramertj@google.com>2018-01-09 11:39:23 -0800
commit25574e58b68dae94f7d9931b5e648a327a94ecd1 (patch)
tree0679be6100cb262046d813cd2624e01a43f464fe /src/liballoc/binary_heap.rs
parent8e7a609e635b728eba65d471c985ab462dc4cfc7 (diff)
downloadrust-25574e58b68dae94f7d9931b5e648a327a94ecd1.tar.gz
rust-25574e58b68dae94f7d9931b5e648a327a94ecd1.zip
Make core::ops::Place an unsafe trait
Diffstat (limited to 'src/liballoc/binary_heap.rs')
-rw-r--r--src/liballoc/binary_heap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/binary_heap.rs b/src/liballoc/binary_heap.rs
index 94bbaf92ce9..3041f85cd4c 100644
--- a/src/liballoc/binary_heap.rs
+++ b/src/liballoc/binary_heap.rs
@@ -1211,7 +1211,7 @@ where T: Clone + Ord {
 #[unstable(feature = "collection_placement",
            reason = "placement protocol is subject to change",
            issue = "30172")]
-impl<'a, T> Place<T> for BinaryHeapPlace<'a, T>
+unsafe impl<'a, T> Place<T> for BinaryHeapPlace<'a, T>
 where T: Clone + Ord {
     fn pointer(&mut self) -> *mut T {
         self.place.pointer()