From 31f259ce5a400801daecd76760a7665aaf130643 Mon Sep 17 00:00:00 2001 From: Deadbeef Date: Sat, 10 Sep 2022 07:44:56 +0000 Subject: Add `const_trait` to `Allocator` --- library/core/src/alloc/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'library/core/src/alloc') 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. /// -- cgit 1.4.1-3-g733a5