]> Repositorios git - scryer-prolog.git/commitdiff
add detail to comment
authorBennet Bleßmann <[email protected]>
Sun, 11 Aug 2024 17:18:35 +0000 (19:18 +0200)
committerBennet Bleßmann <[email protected]>
Sun, 11 Aug 2024 17:20:27 +0000 (19:20 +0200)
src/arena.rs

index 6acb279bcfeed62a70be63d123421d35672b16e3..3d1293a6eb234c4d768711644a3df3fa7c679c6f 100644 (file)
@@ -371,7 +371,8 @@ impl<P, T: ArenaAllocated<Payload = P>> AllocateInArena<T> 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<P> might also be a problem event though that shouldn't be possible
 impl<P, T: ArenaAllocated<Payload = ManuallyDrop<P>>> AllocateInArena<T> for P {
     fn arena_allocate(self, arena: &mut Arena) -> TypedArenaPtr<T> {
         T::alloc(arena, ManuallyDrop::new(self))