We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d1f676 commit dfca61aCopy full SHA for dfca61a
library/core/src/alloc/global.rs
@@ -71,7 +71,8 @@ use crate::ptr;
71
/// optimization that can be applied. You may generally not rely on heap allocations
72
/// happening, if they can be removed without changing program behaviour.
73
/// Whether allocations happen or not is not part of the program behaviour, even if it
74
-/// could be detected via an allocator that tracks allocations.
+/// could be detected via an allocator that tracks allocations by printing or otherwise
75
+/// having side effects.
76
#[stable(feature = "global_alloc", since = "1.28.0")]
77
pub unsafe trait GlobalAlloc {
78
/// Allocate memory as described by the given `layout`.
0 commit comments