From 775b14c53797392f89db9f7f2530c38da113d9e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bennet=20Ble=C3=9Fmann?= Date: Sun, 11 Aug 2024 19:18:35 +0200 Subject: [PATCH] add detail to comment --- src/arena.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arena.rs b/src/arena.rs index 6acb279b..3d1293a6 100644 --- a/src/arena.rs +++ b/src/arena.rs @@ -371,7 +371,8 @@ impl> AllocateInArena for P { } } -/* apparently this overlaps the planket impl above somehow +/* this isn't allowed due to https://github.com/rust-lang/rust/issues/20400 I think, + though P == ManuallyDrop

might also be a problem event though that shouldn't be possible impl>> AllocateInArena for P { fn arena_allocate(self, arena: &mut Arena) -> TypedArenaPtr { T::alloc(arena, ManuallyDrop::new(self)) -- 2.54.0