Note that the ergonomics of derive(ByteEq, ByteHash) on a generic type are still not great, since NoUninit (or Pod) is required but cannot be derived (note the manual impl in the added doctests), but derive(NoUninit)explicitly doesn't support generics and gives a better error message, instead of silently ignoring generics like derive(ByteEq, ByteHash) used to, so this is strictly an improvement.
Closes #217
Note that the ergonomics of
derive(ByteEq, ByteHash)
on a generic type are still not great, sinceNoUninit
(orPod
) is required but cannot be derived (note the manual impl in the added doctests), butderive(NoUninit)
explicitly doesn't support generics and gives a better error message, instead of silently ignoring generics likederive(ByteEq, ByteHash)
used to, so this is strictly an improvement.