diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2022-09-10 07:44:56 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2022-09-16 12:08:45 +0800 |
| commit | 31f259ce5a400801daecd76760a7665aaf130643 (patch) | |
| tree | 27dff5243ba4b41c2e814c97c31935ff6bdab78e /library/core/src/alloc | |
| parent | f937a10c4ef9448abdea6e6d4fa63472723bc779 (diff) | |
| download | rust-31f259ce5a400801daecd76760a7665aaf130643.tar.gz rust-31f259ce5a400801daecd76760a7665aaf130643.zip | |
Add `const_trait` to `Allocator`
Diffstat (limited to 'library/core/src/alloc')
| -rw-r--r-- | library/core/src/alloc/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/alloc/mod.rs b/library/core/src/alloc/mod.rs index 94efa76664f..61553157478 100644 --- a/library/core/src/alloc/mod.rs +++ b/library/core/src/alloc/mod.rs @@ -107,6 +107,7 @@ impl fmt::Display for AllocError { /// /// [*currently allocated*]: #currently-allocated-memory #[unstable(feature = "allocator_api", issue = "32838")] +#[const_trait] pub unsafe trait Allocator { /// Attempts to allocate a block of memory. /// |
