Skip to content

Commit 58d62b8

Browse files
committed
Inform tidy about the reason for the ignored rust code
1 parent dfca61a commit 58d62b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/alloc/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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); }

library/core/src/alloc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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); }

0 commit comments

Comments
 (0)