Relax bounds on FromBytes for MaybeUninit<T>
?
#310
Labels
compatibility-nonbreaking
Changes that are (likely to be) non-breaking
FromBytes for MaybeUninit<T>
?
#310
Currently, in order for
MaybeUninit<T>: FromBytes
, we require thatT: FromBytes
. This was introduced in #308 to deal with the soundness hole described in #299. However, we could relax the bound fromT: FromBytes
toT: FromZeroes
and it would still be sound. It's a bit "asymmetrical", but it's strictly more permissive, so maybe we should do it?If we eventually implement #251, we should just relax these bounds to
NoCell
.The text was updated successfully, but these errors were encountered: