diff options
| author | oli <github35764891676564198441@oli-obk.de> | 2020-11-19 14:28:28 +0000 |
|---|---|---|
| committer | oli <github35764891676564198441@oli-obk.de> | 2020-11-19 14:28:28 +0000 |
| commit | dfca61a4c22d3cd1bc6b7a493de6f6763223b71f (patch) | |
| tree | bce8f29548253ddc7ffefa0e3f04efd0eea2b6f5 | |
| parent | 3d1f6769066978946d381ca77e82e48b652bad65 (diff) | |
| download | rust-dfca61a4c22d3cd1bc6b7a493de6f6763223b71f.tar.gz rust-dfca61a4c22d3cd1bc6b7a493de6f6763223b71f.zip | |
Elaborate on side effects
| -rw-r--r-- | library/core/src/alloc/global.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/alloc/global.rs b/library/core/src/alloc/global.rs index 4922028eee2..89d85bf291e 100644 --- a/library/core/src/alloc/global.rs +++ b/library/core/src/alloc/global.rs @@ -71,7 +71,8 @@ use crate::ptr; /// optimization that can be applied. You may generally not rely on heap allocations /// happening, if they can be removed without changing program behaviour. /// Whether allocations happen or not is not part of the program behaviour, even if it -/// could be detected via an allocator that tracks allocations. +/// could be detected via an allocator that tracks allocations by printing or otherwise +/// having side effects. #[stable(feature = "global_alloc", since = "1.28.0")] pub unsafe trait GlobalAlloc { /// Allocate memory as described by the given `layout`. |
