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;
61
61
/// More concretely, the following code example is unsound, irrespective of whether your
62
62
/// custom allocator allows counting how many allocations have happened.
63
63
///
64
- /// ```text
64
+ /// ```rust,ignore (unsound and has placeholders)
65
65
/// drop(Box::new(42));
66
66
/// let number_of_heap_allocs = /* call private allocator API */;
67
67
/// 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 {
100
100
/// More concretely, the following code example is unsound, irrespective of whether your
101
101
/// custom allocator allows counting how many allocations have happened.
102
102
///
103
- /// ```text
103
+ /// ```rust,ignore (unsound and has placeholders)
104
104
/// Global::dealloc(Global::alloc(some_layout));
105
105
/// let number_of_heap_allocs = /* call private allocator API */;
106
106
/// unsafe { std::intrinsics::assume(number_of_heap_allocs > 0); }
You can’t perform that action at this time.
0 commit comments