File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ use crate::ptr;
6161/// More concretely, the following code example is unsound, irrespective of whether your
6262/// custom allocator allows counting how many allocations have happened.
6363///
64- /// ```text
64+ /// ```rust,ignore (unsound and has placeholders)
6565/// drop(Box::new(42));
6666/// let number_of_heap_allocs = /* call private allocator API */;
6767/// unsafe { std::intrinsics::assume(number_of_heap_allocs > 0); }
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ pub unsafe trait AllocRef {
100100 /// More concretely, the following code example is unsound, irrespective of whether your
101101 /// custom allocator allows counting how many allocations have happened.
102102 ///
103- /// ```text
103+ /// ```rust,ignore (unsound and has placeholders)
104104 /// Global::dealloc(Global::alloc(some_layout));
105105 /// let number_of_heap_allocs = /* call private allocator API */;
106106 /// unsafe { std::intrinsics::assume(number_of_heap_allocs > 0); }
You can’t perform that action at this time.
0 commit comments