diff options
| author | oli <github35764891676564198441@oli-obk.de> | 2020-11-19 11:41:47 +0000 |
|---|---|---|
| committer | oli <github35764891676564198441@oli-obk.de> | 2020-11-19 11:41:47 +0000 |
| commit | 3d1f6769066978946d381ca77e82e48b652bad65 (patch) | |
| tree | 2e4628ca7a5d7d523874e31997e8048432241024 | |
| parent | 173892c7765365ca47f920771ee7f743e2c4dfaa (diff) | |
| download | rust-3d1f6769066978946d381ca77e82e48b652bad65.tar.gz rust-3d1f6769066978946d381ca77e82e48b652bad65.zip | |
Fix tidy
| -rw-r--r-- | library/core/src/alloc/global.rs | 2 | ||||
| -rw-r--r-- | library/core/src/alloc/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/alloc/global.rs b/library/core/src/alloc/global.rs index e6fe1e89c10..4922028eee2 100644 --- a/library/core/src/alloc/global.rs +++ b/library/core/src/alloc/global.rs @@ -61,7 +61,7 @@ use crate::ptr; /// More concretely, the following code example is unsound, irrespective of whether your /// custom allocator allows counting how many allocations have happened. /// -/// ```rust,ignore +/// ```text /// drop(Box::new(42)); /// let number_of_heap_allocs = /* call private allocator API */; /// unsafe { std::intrinsics::assume(number_of_heap_allocs > 0); } diff --git a/library/core/src/alloc/mod.rs b/library/core/src/alloc/mod.rs index 47d5ad9ad56..d174842bcbf 100644 --- a/library/core/src/alloc/mod.rs +++ b/library/core/src/alloc/mod.rs @@ -100,7 +100,7 @@ pub unsafe trait AllocRef { /// More concretely, the following code example is unsound, irrespective of whether your /// custom allocator allows counting how many allocations have happened. /// - /// ```rust,ignore + /// ```text /// Global::dealloc(Global::alloc(some_layout)); /// let number_of_heap_allocs = /* call private allocator API */; /// unsafe { std::intrinsics::assume(number_of_heap_allocs > 0); } |
