From af9168c467e04c1f67ff88d48735f5f4a6dc5c8c Mon Sep 17 00:00:00 2001 From: Deadbeef Date: Sat, 14 May 2022 14:30:36 +1000 Subject: Implement `Hash` for `core::alloc::Layout` --- library/core/src/alloc/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/core/src/alloc') diff --git a/library/core/src/alloc/layout.rs b/library/core/src/alloc/layout.rs index cf864039a23..2f378836cbb 100644 --- a/library/core/src/alloc/layout.rs +++ b/library/core/src/alloc/layout.rs @@ -26,7 +26,7 @@ const fn size_align() -> (usize, usize) { /// like this are met, use specific allocators with looser /// requirements, or use the more lenient `Allocator` interface.) #[stable(feature = "alloc_layout", since = "1.28.0")] -#[derive(Copy, Clone, Debug, PartialEq, Eq)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] #[lang = "alloc_layout"] pub struct Layout { // size of the requested block of memory, measured in bytes. -- cgit 1.4.1-3-g733a5